cgitsb/filters
Stefan Tatschner ceffeb5d52 filters: Improved syntax-highlighting.py
- Switched back to python2 according to a problem in pygments with python3.
  With the next release of pygments this problem should be fixed.
  Issue see here:
  https://bitbucket.org/birkenfeld/pygments-main/issue/901/problems-with-python3
- Just read the stdin, decode it to utf-8 and ignore unknown signs. This ensures
  that even destroyed files do not cause any errors in the filter.
- Improved language guessing:
  -> At first use guess_lexer_for_filename for a better detection of the used
     programming languages (even mixed cases will be detected, e.g. php + html).
  -> If nothing was found look if there is a shebang and use guess_lexer.
  -> As default/fallback choose TextLexer.

Signed-off-by: Stefan Tatschner <stefan@sevenbyte.org>
2014-01-13 22:48:51 +01:00
..
html-converters filters: toggle perl utf8 situation 2013-05-28 07:55:40 +02:00
about-formatting.sh Fix about-formatting.sh 2014-01-08 16:46:51 +01:00
commit-links.sh commit-links.sh: improve regular expressions 2011-07-19 07:12:02 +00:00
syntax-highlighting.py filters: Improved syntax-highlighting.py 2014-01-13 22:48:51 +01:00
syntax-highlighting.sh filters: highlight.sh: add css comments for highlight 2.6 and 3.8 2014-01-08 16:41:26 +01:00