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

[PATCH] gitweb: add extensions to highlight feature map

From
LHLénaïc Huard <lenaic@lhuard.fr.eu.org>
Date
Oct 16, 2011, 16:59 UTC
Message-ID
<201110161859.49817.lenaic@lhuard.fr.eu.org>
added: hpp, m
Signed-off-by: Lénaïc Huard <lenaic@lhuard.fr.eu.org>
---
 gitweb/gitweb.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 85d64b2..75e4854 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -262,11 +262,12 @@ our %highlight_ext = (
        # alternate extensions, see /etc/highlight/filetypes.conf
        'h' => 'c',
        map { $_ => 'sh'  } qw(bash zsh ksh),
-       map { $_ => 'cpp' } qw(cxx c++ cc),
+       map { $_ => 'cpp' } qw(cxx c++ cc hpp),
        map { $_ => 'php' } qw(php3 php4 php5 phps),
        map { $_ => 'pl'  } qw(perl pm), # perhaps also 'cgi'
        map { $_ => 'make'} qw(mak mk),
        map { $_ => 'xml' } qw(xhtml html htm),
+       'm' => 'objc',
 );
 
 # You define site-wide feature defaults here; override them with
-- 
1.7.7
Next: Philip Oakley
Message 1 of 2 in “gitweb: add extensions to highlight feature map”
  1. gitweb: add extensions to highlight feature mapLénaïc Huard, Oct 16, 2011
  2. Philip OakleyOct 16, 2011

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.