Home Download Buy Blog Forum Support

How can I highlight hashtags and other special structures?

How can I highlight hashtags and other special structures?

Postby vicent on Sun Mar 10, 2013 6:28 pm

Sorry if this is not the right subforum for this question.

I am interested in writing Markdown in Sublime Text, as I already told you in my previous entry.

I will use Markdown syntax highlighting and also SmartMarkdown plugin for folding headings.

But, moreover, I would like some special structures to be highlighted, like for example:

  • Hashtags: #example
  • Abbreviations ending with colons: dd: (for due date)
  • Dates: 10.03.2013

Is it easy to define a new style file or plugin in order to do that, and to make it compatible with Markdown syntax highlighting?

I am new to Sublime Text. What documents should I read in order to learn to do this?
_ v _ i _ c _ e _ n _ t _
vicent
 
Posts: 5
Joined: Sat Mar 09, 2013 6:41 pm

Re: How can I highlight hashtags and other special structures?

Postby robertcollier4 on Sun Mar 10, 2013 6:54 pm

In your Packages folder - look for the MarkDown package - and look at and edit any .tmLanguage or .stLanguage files you find. The syntax highlighting rules will be in there with match rule strings specified in regular expression.
robertcollier4
 
Posts: 153
Joined: Sun Feb 24, 2013 5:37 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 11 guests