Commits

Matthew Scott  committed 24daf0f

+ Add support for linenos option, and new directive alias 'code-block'

  • Participants
  • Parent commits c89079b

Comments (0)

Files changed (1)

File slipper/directives/rst_pygments.py

 # ~~~~~~~
 
 # Set to True if you want inline CSS styles instead of classes
-INLINESTYLES = True
+INLINESTYLES = False
 
 from pygments.formatters import HtmlFormatter
 
 
 # Add name -> formatter pairs for every variant you want to use
 VARIANTS = {
-    # 'linenos': HtmlFormatter(noclasses=INLINESTYLES, linenos=True),
-	}
+    'linenos': HtmlFormatter(noclasses=INLINESTYLES, linenos=True),
+    }
 
 from docutils import nodes
 from docutils.parsers.rst import directives
 	])
 
 directives.register_directive('sourcecode', pygments_directive)
+directives.register_directive('code-block', pygments_directive)