Code Monkey home page Code Monkey logo

Comments (16)

joeskeen avatar joeskeen commented on September 18, 2024 3

@alexandrudima would the creation of a monaco-html editor plugin include support for Emmet?

from monaco-editor.

alexdima avatar alexdima commented on September 18, 2024 2

fyi @aeschli

Today the html language support is still inside monaco-editor-core aka in the vscode repo. That is because 100% the same code ships with vscode and with the editor. We plan to break up this code, to create a vscode html extension and once that is done, we can create a monaco-html editor plugin that reuses some of the code, but that is independent of vscode. We can then consider adding more features to it.

TL;DR we can't do it yet due to it affecting vscode, but we plan to fix this by making things separate.

from monaco-editor.

ptyork avatar ptyork commented on September 18, 2024

Sounds good, thanks. I'm creating a tool to help students learn HTML+CSS so this will be quite helpful. Happy to help with this when it becomes possible.

from monaco-editor.

scniro avatar scniro commented on September 18, 2024

@alexandrudima has there been any positive progress on this? I as well am trying to indicate syntax errors while editing HTML

from monaco-editor.

scniro avatar scniro commented on September 18, 2024

May I add that I see the monaco-html plugin. @alexandrudima is there I way I can accomplish the hinting with this module? I'm browsing the object and monaco.languages.html.htmlDefaults appears to be missing diagnosticsOptions similar to the other languages. Am I overlooking something?

from monaco-editor.

aeschli avatar aeschli commented on September 18, 2024

The Monaco HTML support doesn't include any validation and there are currently no plans to work on it. Contributions are welcome. The code base is at https://github.com/Microsoft/vscode-html-languageservice.

from monaco-editor.

scniro avatar scniro commented on September 18, 2024

@aeschli may I ask, why? Is validating HTML just outright not interesting to Microsoft, or is it just backlogged pretty deep? I open up VS Code and have no sense of assurance that any of my markup is even close to being valid. I find this very surprising.

from monaco-editor.

aeschli avatar aeschli commented on September 18, 2024

It just hasn't gotten any priority yet and surprisingly there haven't been many requests for it. My guess this has to do that there are plenty of good validators out there.
It's quite some work to keep a validator up-to-date. One issue with HTML is that there are many templating variants of HTML around, and for these files validation often flags problems that are false positives.

from monaco-editor.

scniro avatar scniro commented on September 18, 2024

@aeschli gotcha. I was hoping there could be at least something simple e.g. <div><div isn't a closed tag and flagged by the editor (similar to how Webstorm will do it). Thanks for the explanation. hopefully more requests for this will roll in but at this point I can't see it happening!

from monaco-editor.

jbenguira avatar jbenguira commented on September 18, 2024

+1 this is really needed

from monaco-editor.

alexkoffler avatar alexkoffler commented on September 18, 2024

+1 jumping on the this is needed train

from monaco-editor.

JasonFritsche avatar JasonFritsche commented on September 18, 2024

+1 Another vote for needed

from monaco-editor.

NiravDoshi1305 avatar NiravDoshi1305 commented on September 18, 2024

+1 Another vote for needed

from monaco-editor.

jainharsh97 avatar jainharsh97 commented on September 18, 2024

+1 Another vote for needed

from monaco-editor.

silli-scale avatar silli-scale commented on September 18, 2024

+1 for this

from monaco-editor.

hediet avatar hediet commented on September 18, 2024

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

from monaco-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.