Home Download Buy Blog Forum Support

knitR and Sweave syntax highlighting

knitR and Sweave syntax highlighting

Postby striatum on Thu Apr 25, 2013 2:39 pm

Hello! I am a newbie in both Mac OS X and Sublime. I wonder how can I make better highlighting of knitR/Sweave code in Sublime? This, in principle, could be sufficient: use basic LaTeX highlighting, but ignore everything that is between "<<" and "@". knitR combines LaTeX and R snippets, which are enclosed like this:
Code: Select all
<<NAME_OF_THIS_SNIPPET>>=
x = 0 # stupid R executable
@

Since it often contains "$", things can get ugly.

Many thanks,
PM
striatum
 
Posts: 9
Joined: Thu Apr 25, 2013 2:17 pm

Return to General Discussion

Who is online

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