AsciiDoc Package for Sublime Text2
- Total 6K
- Win 2K
- OS X 2K
- Linux 1K
|Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8||Sep 7||Sep 6||Sep 5||Sep 4||Sep 3|
AsciiDoc Package for Sublime Text 2
It adds syntax highlighting and snippets for AsciiDoc language to Sublime Text 2 editor.
My work is based on the Christian Zuckschwerdt's AsciiDoc TextMate bundle.
Sublime Text 2 is compatible with Textmate editor for OS X snippets, preferences and languages file. However, even though it can recognize the Textmate snippets, some features such as tab completion, shortcut commands do not work out of the box.
My work is to overcome these limitations.
All the files provided here are tested in Windows 7 and OS X Lion.
To install the package, follow these steps:
- Download the zip containing src files.
- Extract the files to AsciiDoc folder (create this folder if not present already) under:
%APPDATA%\Sublime Text 2\Packages\
- OS X:
~/Library/Application Support/Sublime Text 2/Packages
- Portable Installation:
Sublime Text 2/Data
- Close all instances of Sublime Text 2 editor and relaunch the editor.
If successful, you should see AsciiDoc entry under
View > Syntax and under
Tools > Snippets.
Note: Snippets may take few seconds to load under Windows.
- Create a new file, save it as
- Start typing AsciiDoc!
Snippets can be inserted anywhere by using the menu command
Tools > Snippets > AsciiDoc or by typing two initial characters and hitting tab to complete.
Few tab completion examples are:
- Comments (type
- Headings (type
h4 TABfor one-liner versions)
- Table generation (type
- Tab expansion for blocks (type
- Sidebar block (type
Basic support for some handy shortcuts are now available:
- Bold selection: Select some text and then press
- _Italic_ize selection: Select some text and then press
- Mark selection as Code literal: Select some text and then press
- Mark selection as filename: Select some text and then press
ctrl+b overrides the standard key binding of
Tools > Build System. If this bothers you, you can edit the
.sublime-keymap files (based on your OS) under
Time permitting, I'll add more shortcuts but meanwhile if you come upon something useful, feel free to submit a patch!
Following are planned enhancements for the package:
- Add keyboard shortcuts for various commands such bold text, italics, blocks etc.
- Adding Build system to preview as HTML or PDF.
Your suggestions are welcome.
Author & Credits
Created by Hrusikesh Panda. Copy left or right, as you wish.
Credit goes to Christian Zuckschwerdt for his original work on AsciiDoc TextMate bundle.