ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Rich​Text​Format

by SublimeText ST3

Syntax definition for RTF files in Sublime Text 3

Details

Installs

  • Total 7K
  • Win 4K
  • Mac 3K
  • Linux 849
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 0 0 1 0 0 1 0 1 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 1 0 0 1 2 0 1 0 0 1 0 3 0 0 0 0 1 0 0 0 3
Mac 1 0 0 0 0 0 0 0 1 0 1 1 0 2 1 0 0 1 0 0 2 3 0 0 1 0 6 0 1 2 1 0 0 1 0 0 1 0 0 0 0 2 0 0 1 0
Linux 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0 2 0 0 0 0 0 1 1 0 1 0

Readme

Source
raw.​githubusercontent.​com

RichTextFormat

Syntax definition for RTF files in Sublime Text 3, so they can be highlighted by your color scheme.

Features

  • Syntax definition for RTF files, so that the following can be highlighted by your color scheme:
    • braces
    • control words
    • numeric parameters
    • control symbols
    • bookmarks
    • fields
    • special characters

Also it is possible to see the bookmarks in the document, and jump to them, using Sublime Text's Goto Symbol functionality.

Syntax highlighting and Goto Symbol in action

Installation

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.

  1. Ensure Package Control is installed.
  2. In Sublime Text, open the Preferences menu, and select Package Control.
  3. Select Package Control: Install Package.
  4. Start typing RichTextFormat. When you see it, select it.
  5. Wait for it to install.
  6. Re-open any open RTF files, or set their syntax to RTF manually.
  7. Enjoy!

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!

Scopes:

  • text.rtf punctuation.section curly braces ({)
  • text.rtf punctuation.separator semi-colons (;)