Skip to content
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

HTML bracket highlighting in other types of documents #510

Open
FatherOfAlways opened this issue Jan 17, 2019 · 4 comments
Open

HTML bracket highlighting in other types of documents #510

FatherOfAlways opened this issue Jan 17, 2019 · 4 comments
Labels
C: plugins Related to plugins. P: maybe Pending approval of low priority request. T: feature Feature.

Comments

@FatherOfAlways
Copy link

I would like for the same bracket highlighting that works in my HTML documents to work in my Markdown and TXT documents. Is possible to configure this in settings?

I'm sorry if this is a silly question but I'm a noob and I apologise if this is an inappropriate venue for such questions but I don't know where else to ask.

@facelessuser
Copy link
Owner

It is most likely possible. I strongly suggest not doing it in plain text documents as text could contain anything. As there is no real syntax highlighting in a plain text file, we can't get scope context, which means you might get all sorts of conflicts. But in a Markdown file, it is certainly possible. You'd have override HTML rules and add your Markdown syntax (see documentation) and possible tweak some scope rules.

@FatherOfAlways
Copy link
Author

Thank you for your answer and your advice and apologies for the late reply.
I'll avoid plain text as suggested, not really a problem since most of my text files are in .md anyway.
Forgive my lay knowledge on the subject as I am not a programmer, but from what I've seen of the documentation I should be able to achieve my desired result through the use of "tag_mode" with added criteria, correct?

@facelessuser
Copy link
Owner

Probably not tag mode. I was thinking just updating the angle rule to include markdown syntax, but I admit, I haven't looked too closely at the implications. Give me a few days, and maybe I can take a closer look and possibly give more details instructions on this.

@FatherOfAlways
Copy link
Author

I would be very grateful for your help, whenever you get around to it. Otherwise I'll just try a few things and see if I can figure something out. In any case, thank you.

@facelessuser facelessuser added T: feature Feature. P: maybe Pending approval of low priority request. C: plugins Related to plugins. labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: plugins Related to plugins. P: maybe Pending approval of low priority request. T: feature Feature.
Projects
None yet
Development

No branches or pull requests

2 participants