Did I find the right examples for you? yes no

All Samples(394)  |  Call(0)  |  Derive(0)  |  Import(394)
Pygments
~~~~~~~~

Pygments is a syntax highlighting package written in Python.

It is a generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to prettify
source code. Highlights are:

* a wide range of common languages and markup formats is supported(more...)

src/c/i/circuits-3.0.0.dev/examples/web/wiki/macros/html.py   circuits(Download)
 
import genshi
import pygments
import pygments.util
import pygments.lexers

src/d/j/django-hotsauce-0.5.0/examples/lib/site-packages/markdown2.py   Django-hotsauce(Download)
    def _color_with_pygments(self, codeblock, lexer, **formatter_opts):
        import pygments
        import pygments.formatters
 
        class HtmlCodeFormatter(pygments.formatters.HtmlFormatter):

src/d/j/django-native-tags-HEAD/example_project/app/tests.py   django-native-tags(Download)
 
    try:
        import pygments
        def test_highlight_style(self):
            t = '<style>{% highlight_style style=native cssclass=srcdiv %}</style>'

src/d/j/django-markup-0.4/src/django_markup/filter/rst_filter.py   django-markup(Download)
    def __init__(self):
        # Check if pygments is installed and load it's directive
        try:
            import pygments
            from docutils.parsers.rst import directives
    def pygments_directive(self, name, arguments, options, content, lineno,
                           content_offset, block_text, state, state_machine,
                           pygments_formatter=None):
        import pygments
        from pygments import formatters, lexers

src/n/o/noc-0.7(3)/contrib/src/docutils/docutils/writers/odf_odt/__init__.py   noc(Download)
# Import pygments and odtwriter pygments formatters if possible.
try:
    import pygments
    import pygments.lexers
    from pygmentsformatter import OdtPygmentsProgFormatter, \

src/n/o/noc-0.7(3)/contrib/src/docutils/docutils/writers/odf_odt/pygmentsformatter.py   noc(Download)
 
 
import pygments
import pygments.formatter
 

src/d/j/django-markup-HEAD/src/django_markup/filter/rst_filter.py   django-markup(Download)
    def __init__(self):
        # Check if pygments is installed and load it's directive
        try:
            import pygments
            from docutils.parsers.rst import directives
    def pygments_directive(self, name, arguments, options, content, lineno,
                           content_offset, block_text, state, state_machine,
                           pygments_formatter=None):
        import pygments
        from pygments import formatters, lexers

src/o/m/OmniMarkupPreviewer-HEAD/OmniMarkupLib/Renderers/libs/python3/docutils/writers/odf_odt/__init__.py   OmniMarkupPreviewer(Download)
# Import pygments and odtwriter pygments formatters if possible.
try:
    import pygments
    import pygments.lexers
    from .pygmentsformatter import OdtPygmentsProgFormatter, \

src/o/m/OmniMarkupPreviewer-HEAD/OmniMarkupLib/Renderers/libs/python3/docutils/writers/odf_odt/pygmentsformatter.py   OmniMarkupPreviewer(Download)
 
 
import pygments
import pygments.formatter
 

src/o/m/OmniMarkupPreviewer-HEAD/OmniMarkupLib/Renderers/libs/python2/docutils/writers/odf_odt/__init__.py   OmniMarkupPreviewer(Download)
# Import pygments and odtwriter pygments formatters if possible.
try:
    import pygments
    import pygments.lexers
    from pygmentsformatter import OdtPygmentsProgFormatter, \

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next