Comments (16)
@alexandrudima would the creation of a monaco-html
editor plugin include support for Emmet?
from monaco-editor.
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.
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.
@alexandrudima has there been any positive progress on this? I as well am trying to indicate syntax errors while editing HTML
from monaco-editor.
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.
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.
@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.
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.
@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.
+1 this is really needed
from monaco-editor.
+1 jumping on the this is needed train
from monaco-editor.
+1 Another vote for needed
from monaco-editor.
+1 Another vote for needed
from monaco-editor.
+1 Another vote for needed
from monaco-editor.
+1 for this
from monaco-editor.
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)
- [Feature Request]
- [Feature Request] Remove vertical scrollbar and corresponding space
- [Bug] Error: InstantiationService has been disposed
- [Bug] Error: The parameters in nameBuiltin from elixir.js are globally replaced, causing compilation errors. HOT 1
- [Feature Request] monaco-esbuild-plugin
- [Bug] Vite5+electron+monaco, load ts worker exception: Editor.vue:34 Uncaught TypeError: require2 is not a function HOT 1
- Add Touch Selection Support to Monaco Editor HOT 3
- [Bug] Create two editors on the same page, set different themes, and the themes are overwritten
- NVDA screen reader is announcing unnecessary information as "press ALT + F1 key to expand accessibility option" but nothing is happening when we hit these keys:A11y_MonacoEditor_Screenreader
- [Bug] Cannot find JS module imported from TS file (2307)
- [Feature Request] ESM build that can be loaded from CDNs HOT 1
- [Bug] - Viewport scrolling doesn't keep in perfect sync when Monaco editor has a small fixed height
- [Bug] Position sticky effect does not get honored for scrollbar backgrounds
- [mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
- [Bug] css error
- [Bug] `Error`: cpp: an 'include' attribute must be a string at: tokenizer.root
- [Bug] Getting not iterable error, when key press HOT 1
- [Bug] `CompletionItem.range` has a default but is marked as required in the typings
- [Bug] ThirdPartyNotices.txt licensing error for Web Background Synchronization
- [Bug] Adding backtick to close open string adds two backticks instead of one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor.