2017-25 © Pedro Peláez
 

contao-module contao-pygments

Code elements, using the pygments syntax highlighter for Contao OpenSource CMS

image

bit3/contao-pygments

Code elements, using the pygments syntax highlighter for Contao OpenSource CMS

  • Sunday, May 4, 2014
  • by tril
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pygments content element

Pygments - the Python syntax highlighter - is a nice syntax highlighter with a lot of lexers, formatters and styles. This extension provide a content element and frontend module that output highlighted code made with pygments., (*1)

Limitations

You can select a style per element. This is useful if you use different styles on different pages. But keep in mind that you never can use multiple styles on the same page!, (*2)

Optimisation

If you select a style in the content element or frontend module, the required style will be added to the page. If you want to use a "global" style definition, do not select any style in the element. You can dump the styles with pygmentize -f html -S <style>. In most cases pygmentize -f html -S default is a good choice. Use pygmentize -L styles to get a complete list of all available styles., (*3)

After you dumped the styles, put them into a css file and include these file in your layout., (*4)

Tip: use the style selector in the element to find your favorite style., (*5)

The Versions

04/05 2014

dev-develop

dev-develop http://bit3.de

Code elements, using the pygments syntax highlighter for Contao OpenSource CMS

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

code pygments contao syntax hightlight