RoyalTS
RoyalTS

Reputation: 10203

Sweave syntax highlighting for Sublime Text

Currently Sublime Text 2 with installed LaTeXTools bundle stumbles over Sweave/knitr code blocks. How can I tell ST to either ignore everything of the form

<<arguments here>>=

@

or, even better, to treat it as R source code?

Upvotes: 4

Views: 1229

Answers (2)

RoyalTS
RoyalTS

Reputation: 10203

There's now the SublimeKnitr bundle that's made specifically made for Sublime Text. Install from GitHub source or via Package Control.

Upvotes: 0

RoyalTS
RoyalTS

Reputation: 10203

The Sweave Textmate bundle (or at least the essential parts) will also work with Sublime Text 2. Just download the bundle from https://github.com/textmate/sweave.tmbundle and move it to the Packages directory.

Upvotes: 3

Related Questions