Did I find the right examples for you? yes no

All Samples(174)  |  Call(0)  |  Derive(0)  |  Import(174)
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-2.1.0/examples/web/wiki/macros/html.py   circuits(Download)
 
import genshi
import pygments
import pygments.util
import pygments.lexers

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/b/a/badger-lib-HEAD/packages/django-markup/src/django_markup/filter/rst_filter.py   badger-lib(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/b/a/badger-lib-HEAD/packages/django-markup/src/django_markup/filter/markdown_filter.py   badger-lib(Download)
    def __init__(self):
        try:
            # Check if pygments is installed and highlight code blocks.
            import pygments
            self.use_pygments = True
    def pygmentize(self, text, pygments_formatter=None, **kwargs):
        """
        Replaces naked code blocks with highlighted.
        """
        import pygments

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/b/a/badger-lib-HEAD/packages/docutils/docutils/writers/odf_odt/__init__.py   badger-lib(Download)
# Import pygments and odtwriter pygments formatters if possible.
try:
    import pygments
    import pygments.lexers
    from pygmentsformatter import OdtPygmentsProgFormatter, \

src/b/a/badger-lib-HEAD/packages/docutils/docutils/writers/odf_odt/pygmentsformatter.py   badger-lib(Download)
 
 
import pygments
import pygments.formatter
 

src/n/o/noc-0.7(3)/contrib/src/tornado/demos/blog/markdown.py   noc(Download)
    def _color_with_pygments(self, codeblock, lexer, **formatter_opts):
        import pygments
        import pygments.formatters
 
        class HtmlCodeFormatter(pygments.formatters.HtmlFormatter):

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