<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/filters/syntax-highlighting.sh, branch v0.9</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/filters/syntax-highlighting.sh?h=v0.9</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/filters/syntax-highlighting.sh?h=v0.9'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2009-11-19T11:14:45Z</updated>
<entry>
<title>syntax highlighting for all formats supported by "highlight"</title>
<updated>2009-11-19T11:14:45Z</updated>
<author>
<name>Georg Lukas</name>
<email>georg@op-co.de</email>
</author>
<published>2009-11-19T11:14:45Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=56522ebe1387721d10196e835346257e7494abad'/>
<id>urn:sha1:56522ebe1387721d10196e835346257e7494abad</id>
<content type='text'>
The highlight tool can be given any of the supported file extensions
as its -S parameter. This patch replaces the case-switch by extracting
the extension from the supplied file name and passing it to highlight.
However, this requires a shell supporting the ${var##pattern} syntax,
like dash or bash.

Unknown extensions cause a fall-back to plain text using the --force
switch. Error messages are redirected to /dev/null.

A special case maps Makefile and Makefile.* to the "mk" extension.

The total overhead is reduced by calling "exec highlight". No forks are
needed during script execution.

Signed-off-by: Georg Lukas &lt;georg@op-co.de&gt;
</content>
</entry>
<entry>
<title>Add some example filter scripts</title>
<updated>2009-08-09T12:56:23Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-08-09T12:56:23Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e6cd7121edf55c13f04cd5d6fca8f07c4035ce0a'/>
<id>urn:sha1:e6cd7121edf55c13f04cd5d6fca8f07c4035ce0a</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
