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

Re: [PATCH] gitweb: move highlight config out of guess_file_syntax()

From
Alejandro R. Sedeño <asedeno@mit.edu>
Date
Jul 26, 2010, 20:56 UTC
Message-ID
<4C4DF662.5030201@mit.edu>
In-Reply-To
<201007262248.35341.jnareb@gmail.com>
On 7/26/2010 4:48 PM, Jakub Narebski wrote:
Show 17 quoted lines
>> As of 1.7.2, with syntax highlighting merged and refactored (592ea41),
>> > access to the hashes that define syntax highlighting mappings was lost.
>> > Moving the hashes out into the config area lets $GITWEB_CONFIG contain
>> > lines like:
>> > 
>> >   $highlight_ext{'lisp'} = 'lisp';
>> >   $highlight_basename{'GNUmakefile'} = 'mak';
> O.K., I don't think we want to put all possible languages that 'highlight'
> supports in %highlight_ext, so you might want to add support for less
> common languages, or languages introduced in newer versions of tool.
> 
> 
> Note that you can write here
> 
>     $highlight_basename{'GNUmakefile'} = 'make';
> 
> which might be slightly more readable.

Yeah, that was a typo on my part; I was recalling samples from memory. The actual entry reads 'make' not 'mak', just as you suggest. :)

-Alejandro
Previous: Jakub NarebskiNext: Jakub Narebski
Message 4 of 6 in “gitweb: move highlight config out of guess_file_syntax()”
  1. gitweb: move highlight config out of guess_file_syntax()Alejandro R. Sedeño, Jul 24, 2010
  2. Alejandro R. SedeñoJul 25, 2010
  3. Jakub NarebskiJul 26, 2010
  4. Alejandro R. SedeñoJul 26, 2010
  5. Jakub NarebskiJul 26, 2010
  6. gitweb: move highlight config out of guess_file_syntax()Alejandro R. Sedeño, Jul 28, 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.