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

Re: Syntax highlighting for gitweb

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 26, 2007, 18:55 UTC
Message-ID
<Pine.LNX.4.63.0702261953420.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20070226181858.GC11232@hoeg.nl>
Hi,
On Mon, 26 Feb 2007, Ed Schouten wrote:
Show 5 quoted lines
> I just wrote a really awful patch to add syntax highlighting to gitweb:
> 
> [...]
>
> +	$pid = open2(\*HLR, \*HLW, "highlight -f --syntax c");

Since this fork()s an external program, which is possibly expensive, or can fail because the program is not there, you should at least

- document it, and
- make it optional.

Ciao, Dscho

Previous: Ed SchoutenNext: Jakub Narebski
Message 2 of 3 in “Syntax highlighting for gitweb”
  1. Ed SchoutenFeb 26, 2007
  2. Johannes SchindelinFeb 26, 2007
  3. Jakub NarebskiFeb 27, 2007

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.