Skip to content

hplgit/pygments-doconce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygments-doconce: syntax coloring for DocOnce files

Overview

This package provides a Pygments lexer for DocOnce files. The lexer is published as an entry point and, once installed, Pygments will pick it up automatically.

You can then use the doconce language with Pygments:

$ pygmentize -l doconce test.do.txt

In Sphinx documents the lexer is selected with the highlight directive:

.. highlight:: doconce

Thanks to pygments-openssl project for providing a template https://github.com/stefanholek/pygments-openssl

Installation

Use your favorite installer to install pygments-doconce into the same Python you have installed Pygments. Constructing an egg from repository:

$ git clone https://github.com/hplgit/pygments-doconce.git
$ cd pygments-doconce
$ sudo python setup.py install

DocOnce is needed for the lexer to work:

$ sudo pip install -e git+https://github.com/hplgit/doconce#egg=doconce

To verify the installation of pygments-doconce run:

$ pygmentize -L lexer | grep -i doconce
* doconce:
DocOnce

About

Pygment lexer for DocOnce markup language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published