Joel Clermont
1a1c8681a4
Enable inline PHP syntax highlighting
Pygments has a "startinline" option which is only relevant for the PhpLexer. It allows syntax highlighting without the opening <?php tag. I believe this option is ignored for every other lexer.
Could you either set this to true by default using the proposed change? Or could this be exposed as a setting somewhere in _config.yml? I can't think of a reason someone would not want this enabled.
12 years ago
Shane Liesegang
35e23f59ca
Update plugins/pygments_code.rb
Giving a more helpful error message instead of silently failing.
12 years ago
sjml
9293ecc174
Update plugins/pygments_code.rb
Making it so the build doesn't fail if a bad lexer is passed to the code highlighting.
12 years ago
Frederic Hemberger
2043c543d2
Add utf-8 encoding option to Pygments highlighter, fixes #232
13 years ago
Frederic Hemberger
347e855ddc
Fixes HTML validation issues with code highlighting
13 years ago
Frederic Hemberger
f6bf894387
Aligns naming of .pygments-cache, .gist-cache and .sass-cache
13 years ago
Brandon Mathis
358d02a4a7
centralized pygments aliases into pygments_code.rb. Added alias for .ru (ruby), which sort of fixes #108
13 years ago
Brandon Mathis
ef4a42f977
Codeblock regex improved to better detect extensions fixes #96 , added support for tableizing non highlighted code blocks from liquid codeblock tag and backtick code blocks
13 years ago
Brandon Mathis
cb6442e624
fixed empty line stripping from codeblocks
13 years ago
Brandon Mathis
7b81aab5ac
added support for pygments.rb removing dependency on pygments, added support for caching highlighted code from pygments.rb and added default line numbering. Javascript auto line numbering now only occurs for embedded gists
13 years ago