Sublime Forum

New to Sublime, color/highlight inquery

#1

Hello,

I just installed Sublime Text 2 and love the colors and interface, however I am not a programmer. I work with lengthy router configurations so I love the “where you are” document location feature on the right.

My question is: Is there an option or plugin to enable text coloring and/or highlighting? Say I want to highlight (or color) multiple sections of a txt file for easy reference via the document location. Is there an option to do this?

Thanks for any info.

0 Likes

#2

You can have a look at packagecontrol.io/ and check if your configuration syntax is already supported: there is one for CISCO router here.

Otherwise you will have to create the syntax file yourself: docs.sublimetext.info/en/latest/ … xdefs.html
Note that the latest dev release introduce new syntax for the language definition: sublimetext.com/docs/3/syntax.html
The easiest, in my opinion, is find a syntax similar to what you have and use that as a starting point.

0 Likes

#3

Thank you for taking the time to respond, Clams.

I am definitely new to the syntax and like your idea of building off someone else’s work. After going through your Cisco link, I managed to find someone else that actually added to that plugin that really helps what I’m doing.

I think I’ll start from here and try to figure out the basics for editing this specific plugin.

Thanks again!

0 Likes