git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCHv2 0/2] gitweb: Syntax highlighting support

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 27, 2010, 19:34 UTC
Message-ID
<1272396885-30609-1-git-send-email-jnareb@gmail.com>

This series of patches is based originally on on Daniel Svensson's and Sham Chukoury's work in gitweb-xmms2.git

Currently only 'highlight' standalone syntax highlighter from http://www.andre-simon.de/ is supported. Second patch in the series reorganizes syntax highlighting code to make it easier to add (in the future) support for other syntax highlighters, like source-highlight from http://www.gnu.org/software/src-highlite, or some syntax higlighting Perl module from CPAN like Text::Highlight or Syntax::Highlight::* modules. Unfortunately the name of syntax to be used as parameter to syntax highlighter (syntax highlighting engine) depends on highlighter, which would complicate code a bit.

The list of currently supported file types do not cover all types that 'highlight' supports, but it is selected a bit, with syntax highlight for git.git taking precedence.

Table of contents:
~~~~~~~~~~~~~~~~~~
 [PATCH 1/2] gitweb: Syntax highlighting support
 [PATCH 2/2] gitweb: Refactor syntax highlighting support
Shortlog:
~~~~~~~~~
Jakub Narebski (1):
  gitweb: Refactor syntax highlighting support
Johannes Schindelin (1):
  gitweb: Syntax highlighting support
Diffstat:
~~~~~~~~~
 gitweb/gitweb.css                      |   18 +++++++
 gitweb/gitweb.perl                     |   79 ++++++++++++++++++++++++++++++-
 t/t9500-gitweb-standalone-no-errors.sh |   29 ++++++++++++
 3 files changed, 123 insertions(+), 3 deletions(-)
-- 
Jakub Narebski
Next: Jakub Narebski
Message 1 of 5 in “[PATCHv2 0/2] gitweb: Syntax highlighting support”
  1. Jakub NarebskiApr 27, 2010
  2. 1/2 gitweb: Syntax highlighting supportJakub Narebski, Apr 27, 2010
  3. 2/2 gitweb: Refactor syntax highlighting supportJakub Narebski, Apr 27, 2010
  4. Petr BaudisApr 27, 2010
  5. Jakub NarebskiApr 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.