Home Download Buy Blog Forum Support

Colouring or Syntax Highlighting Scratch File

Colouring or Syntax Highlighting Scratch File

Postby ShriekBob on Fri Dec 13, 2013 6:26 pm

Hi all,

I'm working on a plugin for Android Development. As part of that I have a scratch that I pump a load of output to (logcat, for example). I was wondering if there was a way to color the scratch. I was considering doing this with syntax highlighting (the format is very very regular, and the scratch has a set name) but I'm unsure how to force the detection of the syntax highlighting given the scratch won't be saved.

So, is there a way to set the syntax on a scratch? Or, is there a way to color the lines of a scratch?

Thank you in advance,
Bob.
ShriekBob
 
Posts: 1
Joined: Fri Dec 13, 2013 5:57 pm

Re: Colouring or Syntax Highlighting Scratch File

Postby lunixbochs on Thu Dec 19, 2013 2:10 am

I do something like that in SublimeXiki. This is Xiki.tmLanguage

Code: Select all
settings.set('syntax', 'Packages/SublimeXiki/Xiki.tmLanguage')
lunixbochs
 
Posts: 91
Joined: Fri Oct 08, 2010 10:18 pm


Return to Plugin Development

Who is online

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