-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax highlighting is white and incorrect for html #64699
Comments
The html grammar we use doesn't handle the greater than symbol being on the next line like this:
Is this something that you expect to be ok? It isn't a standard way of formatting html as far as I know. |
I was wondering that too. It seems to validate at https://validator.w3.org/. Is this the correct spec? See https://www.w3.org/TR/html5/syntax.html#end-tags
And https://www.w3.org/TR/html5/infrastructure.html#space-characters says -
🤔 What does Code use for html syntax? |
The html formatter is here, but I don't know all the details. The html grammar we use for syntax highlighting is here: https://github.com/textmate/html.tmbundle. You mentioned that you're using an extension to provide formatting: the build in VS Code html formatting fixed those strange end tags for me. Based on the spec you linked they're allowed, they just aren't what I expected to see. Since the issue is with the grammar, I can forward this issue to https://github.com/textmate/html.tmbundle. |
This issue was moved to textmate/html.tmbundle#97 |
Thanks @alexr00 |
Issue Type: Bug
Syntax highlighting is white and incorrect for html
Minimal example:
An extension formatted it but it appears the syntax highlighting is a code bug?
VS Code version: Code - Insiders 1.30.0-insider (85f805a, 2018-12-05T12:13:44.894Z)
OS version: Darwin x64 18.2.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (18)
The text was updated successfully, but these errors were encountered: