-
-
Notifications
You must be signed in to change notification settings - Fork 46
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 stops after a markdown block #81
Comments
This issue is fixed in Slim 2.0. Slim 2.0 for ST4 has been released at Package Control, with source moved to https://github.com/SublimeText/Slim. |
The scopes used for various tokens are equal to those which HTML uses for same semantically constructs. As Tags such as The following screenshots show your code snippet with Mariana and a tweaked Brackets Dark: I agree string scope for class names to probably be a bit overused. Not quite sure about proper alternatives though. |
I think that previously, they received the same color as The fact that these classes are strings in another format are arguably less relevant, no?
I am not 100% sure how it was - maybe just the first class was with the same color as |
With former Slim the first class name was not scoped and the following ones received
This is basically correct and I've spend some time to come up with a proper decision. I guess something like |
I understand your point. These last screenshots are as I remember it. They made much more sense to me. I know that the classes in I feel that the first class (if it appears on its own row, like in our example) should be in a different color, like any other "block starter" - but I totally understand the dilemma. The thing is, that the new syntax sort of reminds me of how sublime looks when you "borrow" a syntax from another language, since the language you are using does not have proper highlighting (imaging using YAML highlighting for TOML files). It feels very off balance, like the highlighting logic does not "understand" the importance of the tokens. |
Attribute shortcuts are scoped So they can be highlighted with a unique color. The first one in a line won't however receive a dedicated scope as it doesn't have a special meaning semantically. Note: Different highlighting of classes and ids can be configured by a color scheme via following scopes:
|
Cool. The screenshot looks better already, thanks for that. |
This used to work well in previous versions of sublime (or the plugin), but now markdown blocks break the syntax highlighting.
The text was updated successfully, but these errors were encountered: