Fontlocking for AsciiDoc files. Dress up AsciiDoc text files with nice highlights.
Only one-line titles get highlighted.
The higher the level is, the more prominent it is, both size-wise or color-wise.
Nearly all special features are highlighted (at least all that I deemed necessary).
There are few special add-ons for my own need, which are not of AsciiDoc format. You can ignore them safely.
Please visit the xpt tools support page.
AsciiDoc is a text document format for writing articles, books, manuals and UNIX man pages. AsciiDoc files can be translated to HTML (with or without stylesheets), DocBook (articles, books and refentry documents) and LinuxDoc using the asciidoc command. AsciiDoc can also be used to build and maintain websites.
You write an AsciiDoc document the same way you would write a normal text document, there are no markup tags or weird format notations. AsciiDoc files are designed to be viewed, edited and printed directly or translated to other presentation formats.
Tag: devel::docsystem, interface::commandline, made-of::lang:python, use::converting, works-with::text:formatted
Some screen shots,
section heading and special paragraphs:
'Do not feel comfortable with dark background?' You might have a second thought after reading Dark Background Is Good for You. Anyway, the fontlocking color should work for light background as well.
Assume that you use .doc for your AsciiDoc text files, change it to your like.
Put the 'doc-mode.el' file into your Emacs' load-path.
To handle .doc files, e.g., 'filename.doc', add something like
(add-to-list 'auto-mode-alist '("\\.doc$" . doc-mode))
to your .emacs file.
To enter doc-mode automatically, add
(autoload 'doc-mode "doc-mode")
to your .emacs file and change the first line of your doc file to:
# -*- Doc -*-
if it doesn't have a .doc extension.