TWiki and Foswiki have you editing wiki pages in a HTML text area or a web based WYSIWYG editor, but to avoid frustration, and to maximise your productivity, wouldn't you rather be using your awesome Sublime Text editor?
- Syntax highlighting of the TWiki/Foswiki markup language.
- Heading navigation via Command-R (OS X) and Control-R (Windows and Linux).
- Some basic snippets and auto-completion.
To install this package, you have three options:
- Use Sublime Package Control to install the TWiki package. This is your best option.
- Use git to clone the repository. For example, on OS X:
git clone git://github.com/darryllawson/SublimeTWiki.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/TWiki
- Download a zip of the repository from https://github.com/darryllawson/SublimeTWiki/archive/master.zip, and extract that as a directory named TWiki in your Sublime Text Packages directory.
The language definition for TWiki markup relies on the
markup.* family of scope names. Unfortunately, those scope names are not well supported by the color schemes distributed with Sublime Text, even though they are part of the TextMate scope naming conventions. If TWiki syntax highlighting doesn't appear to be working for you, then you may need to modify your color scheme; perhaps consider the Monokai for Markup color theme distributed with this package (see below for details), or the theme distributed with the MarkdownEditing package.
Monokai for Markup color scheme
A Monokai for Markup color theme is distributed with this package. It is a modified version of the standard Monokai theme, with support for the
markup.* family of scope names.
It's All Text! Firefox Add-on
If you use Firefox, you can use the It's All Text! add-on to edit HTML text areas with Sublime Text. To configure it:
- Right click in a text area in Firefox, and select It's All Text > Preferences.
- Set the Editor field to the path of your Sublime Text executable.
.twikito the front of the File Extensions list (which is comma separated).
QuickCursor (on OS X)
If you use Safari, Chrome or any other browser on OS X, you can use QuickCursor to edit HTML text areas (any text actually) with Sublime Text. To configure it, open its Preferences and add a Custom Bundle ID of
com.sublimetext.2. I also configure an Option-Command-E global short-cut.
Text Editor Anywhere (on Windows)
If you use Chrome, Internet Explorer or any other browser on Windows, you can use Text Editor Anywhere to edit HTML text areas (any text actually) with Sublime Text. To configure it:
- Open Options from the system tray icon.
- Add a new
twikiextension and set the associated editor to
C:\Program Files\Sublime Text 2\sublime_text.exe.
- Move the new
twikiextension entry to the top of the list.
- Minor: <verbatim>, </verbatim>, </pre> and </literal> tags can not span multiple lines.
- Minor: only a single attribute in a <verbatim> tag is highlighted.
This project is hosted at https://github.com/darryllawson/SublimeTWiki/. Please report issues at https://github.com/darryllawson/SublimeTWiki/issues/.