forked from fpoirotte/reSTPlugin
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for some of Pygments' options.
- Register "code", "code-block", "sourcecode" & "sourcecode-block" as aliases to the same directive. - Rewrite the "pygments_directive" function as a class (Pygments). - Create a new formatter each time. It takes more time to format the document because of that, BUT : - Add support for some of Pygment's formatting options : * linenos (as a flag) * hl_lines * linenostart * linenostep * linenospecial * nobackground (as a flag) * anchorlinenos (as a flag) * noclasses (as a flag)
- Loading branch information
Showing
2 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters