Syntax definition for RTF files in Sublime Text 3, so they can be highlighted by your color scheme.
- Syntax definition for RTF files, so that the following can be highlighted by your color scheme:
- control words
- numeric parameters
- control symbols
- special characters
Also it is possible to see the bookmarks in the document, and jump to them, using Sublime Text's Goto Symbol functionality.
The recommended way to install the Sublime Text RTF syntax is via Package Control. Package Control will install the plugin on your system and keep it up to date.
- Ensure Package Control is installed.
- In Sublime Text, open the
Preferencesmenu, and select
Package Control: Install Package.
- Start typing
RichTextFormat. When you see it, select it.
- Wait for it to install.
- Re-open any open RTF files, or set their syntax to RTF manually.
Color Scheme - Scopes
This package follows the conventions set out in the official ST3 scope naming documentation. Some color schemes won't color punctuation by default, so you may want to tweak it or request that the author of the color scheme tweak it - because there aren't many distinct token types in RTF files, and braces are important - highlighting them in a different color can make the documents much more readable!
text.rtf punctuation.sectioncurly braces (
text.rtf punctuation.separatorsemi-colons (