Adding syntax highlighting for hpp files to mcedit

Dennis Sieben dsieben at suse.de
Thu Feb 16 13:57:49 UTC 2006


Hello,

maybe anybody of you can add a little patch to mc that would help other guys 
too. In the default setting mcedit does not highlight the syntax of hpp 
files. This is because mcedit detect the highlighting on the basis of a file 
mask. The according file mask for the hpp files is missing at the moment.

To fix this /usr/share/mc/syntax/Syntax has to be patched with the following:

-----------------------------------8<-----------------------------------------
--- Syntax.orig 2006-02-16 11:32:25.000000000 +0100
+++ Syntax      2006-02-16 11:20:14.000000000 +0100
@@ -72,7 +72,7 @@
 file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
 include texinfo.syntax
 
-file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h.in)$ C/C\+\+\sProgram
+file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h|hpp|HPP\.in)$ C/C\+\+\sProgram
 include c.syntax
 
 file ..\*\\.[fF]$ Fortran\sProgram
----------------------------------->8-----------------------------------------

Regards,

        Dennis Sieben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060216/6969fa22/attachment.asc>


More information about the mc-devel mailing list