Help - Search - Members - Calendar
Full Version: PHP lexer
JDNET Forum > Programs > SourceCodeViewer for Directory Opus
gogogadgetscott
I have trouble adding php as an lang to SourceCodeViewer.xml

At first I, copied the C/C++ definition and changed the name attribute. Doing so highlighted the php file but incorrectly. I then added the correct lexer index as listed below, but all text in php file was black.

Does any one have SCV working with php file?

CODE


<Language Name="php" Extensions="php,php4,inc" FontName="Lucida Console" FontSize="9" TabWidth="4" TabsAsSpaces="True" >

    <Style Index="118" LexerIndex="SCE_HPHP_DEFAULT"/>

    <Style Index="34"  Foreground="BLACK"  LexerIndex="STYLE_BRACELIGHT"/>

    <Style Index="32"  Foreground="YELLOW" LexerIndex="STYLE_BRACEBAD"/>

    <Style Index="119"  Foreground="GREEN"  LexerIndex="SCE_HPHP_HSTRING"/>

    <Style Index="120"  Foreground="GREEN"  LexerIndex="SCE_HPHP_SIMPLESTRING"/>

    <Style Index="121"  Foreground="BLUE"   LexerIndex="SCE_HPHP_WORD"/>

    <Style Index="122"  Foreground="BROWN"  LexerIndex="SCE_HPHP_NUMBER"/>

    <Style Index="123"  Foreground="RED"    LexerIndex="SCE_HPHP_VARIABLE"/>

    <Style Index="124"  Foreground="GREEN"  LexerIndex="SCE_HPHP_COMMENT"/>

    <Style Index="125" Foreground="GREEN"  LexerIndex="SCE_HPHP_COMMENTLINE"/>

    <Style Index="126" Foreground="BLUE"   LexerIndex="SCE_HPHP_HSTRING_VARIABLE"/>

    <Style Index="127" Foreground="BLACK"  LexerIndex="SCE_HPHP_OPERATOR"/>

</Language>

mrblobby
Hi,

Forget v1.2 use v2 instead which uses the SciTE configuration files:

http://resource.dopus.com/viewtopic.php?t=992
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.