BracketHighlighter
BracketHighlighter copied to clipboard
HTML bracket highlighting in other types of documents
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.
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.
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?
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.
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.