<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/filters/syntax-highlighting.sh, branch jd/zx2c4-deployment</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=jd%2Fzx2c4-deployment</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/filters/syntax-highlighting.sh?h=jd%2Fzx2c4-deployment'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2026-05-04T21:03:58Z</updated>
<entry>
<title>css: Support for dark mode</title>
<updated>2026-05-04T21:03:58Z</updated>
<author>
<name>Samuel Lidén Borell</name>
<email>samuel@kodafritt.se</email>
</author>
<published>2023-01-29T16:55:29Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=43fede44a7eb435ab7e0aafd4badeb4334ef6edb'/>
<id>urn:sha1:43fede44a7eb435ab7e0aafd4badeb4334ef6edb</id>
<content type='text'>
Modern browsers have a "dark mode" preference, which enables alternate
styles on web sites that support this.

This patch adds a dark color scheme, that is automatically activated
via a CSS @media query.

Older browsers that do not support color schemes will simply show the
light scheme, but possibly without syntax highlighting.

Note that filters that use color (such as source highlighters) and
logotypes may need to be updated to work with a black background!
See the updated files in the filters/ directory.

Signed-off-by: Samuel Lidén Borell &lt;samuel@kodafritt.se&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: spelling fixes</title>
<updated>2017-10-15T16:44:55Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-10-14T19:05:51Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=67d0f870506e3bc3703ae3cb2cb00e19691ce967'/>
<id>urn:sha1:67d0f870506e3bc3703ae3cb2cb00e19691ce967</id>
<content type='text'>
Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
</content>
</entry>
<entry>
<title>filters: highlight.sh: add css comments for highlight 2.6 and 3.8</title>
<updated>2014-01-08T15:41:26Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2013-11-09T19:34:55Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=09a28d761e1776329ec844916b72b8ae8c030e4b'/>
<id>urn:sha1:09a28d761e1776329ec844916b72b8ae8c030e4b</id>
<content type='text'>
v2: add highlight 3.13 as present on Fedora 19

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
</content>
</entry>
<entry>
<title>syntax-highlighting.sh: Fix command injection.</title>
<updated>2012-10-28T02:05:50Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2012-10-28T02:03:41Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=7ea35f9f8ecf61ab42be9947aae1176ab6e089bd'/>
<id>urn:sha1:7ea35f9f8ecf61ab42be9947aae1176ab6e089bd</id>
<content type='text'>
By not quoting the argument, an attacker with the ability to add files
to the repository could pass arbitrary arguments to the highlight
command, in particular, the --plug-in argument which can lead to
arbitrary command execution.

This patch adds simple argument quoting.
</content>
</entry>
<entry>
<title>syntax-highlight: when the file has no extension, assume text</title>
<updated>2012-10-09T11:19:12Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2012-10-09T11:10:48Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d14faf4424ae06ced696c15f205c85fe55b8e6e7'/>
<id>urn:sha1:d14faf4424ae06ced696c15f205c85fe55b8e6e7</id>
<content type='text'>
There are 2 situations:
1- empty extension: assuming text is better than highlight
   producing no output because of a missing argument.
2- no extension at all: assuming text is better than setting
   the extension to the filename, which is what now happens.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
</content>
</entry>
<entry>
<title>Revert "filters/syntax-highlighting.sh: work around highlight --force bug"</title>
<updated>2012-10-09T11:12:09Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2012-10-09T11:08:30Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=2ad9063cb53b55b1456c7d2ed08e6fb99d32ab78'/>
<id>urn:sha1:2ad9063cb53b55b1456c7d2ed08e6fb99d32ab78</id>
<content type='text'>
This reverts commit f50be7fda0a7ab57009169dd5905fcbab8eb5166.

An update with the latest highlight landed in EPEL. This new version
doesn't have the --force bug, so the workaround can now be removed.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2012-03-18T20:23:30Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2012-03-18T20:23:30Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=08352c7a02f057f6cbaf817ca7e53c53be590a62'/>
<id>urn:sha1:08352c7a02f057f6cbaf817ca7e53c53be590a62</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filters/syntax-highlighting.sh: work around highlight --force bug</title>
<updated>2012-03-18T20:12:36Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2012-03-18T11:48:01Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=f50be7fda0a7ab57009169dd5905fcbab8eb5166'/>
<id>urn:sha1:f50be7fda0a7ab57009169dd5905fcbab8eb5166</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filters/highlight.sh: manually support highlight version 2 and 3</title>
<updated>2012-03-18T20:12:35Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2012-03-18T11:38:26Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=375353caffb0a251e7f0174aa9b73cc1961e93fd'/>
<id>urn:sha1:375353caffb0a251e7f0174aa9b73cc1961e93fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filters: document environment variables in filter scripts</title>
<updated>2011-03-26T10:03:42Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2011-03-23T10:57:44Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b2cf630a4b423bbda6507b7f658042563e76b36e'/>
<id>urn:sha1:b2cf630a4b423bbda6507b7f658042563e76b36e</id>
<content type='text'>
Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
