SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

PHP highlighting and MarkNextWord

Last post 02-02-2007 10:18 PM by Cory. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-18-2007 9:29 PM

    • Cory
    • Not Ranked
    • Joined on 01-18-2007
    • Posts 3

    PHP highlighting and MarkNextWord

    Hello,

        I am using MarkNextWord to try and highlight the vars in PHP ($var) only problem is that it will not highlight like this

    $testVar

    It will just stay as black text but like this it works

    $ testVar

    Does anyone know how to correct this or a better way of highlighting php vars?

     

    Thanks, Cory. 

  • 01-19-2007 2:58 PM In reply to

    • siegi44
    • Top 10 Contributor
    • Joined on 03-31-2006
    • Steyr, Austria
    • Posts 187
    • Team Members

    Re: PHP highlighting and MarkNextWord

    Hi

    I could resolve this with adding

                 <MarkFollowing bold="false" italic="false" color="DarkRed">$</MarkFollowing>           
               
                <KeyWords name="var" bold="false" italic="false" color="DarkRed">
                    <Key word="$" />
                </KeyWords>

    to the syntaxhighlighting definition and adding the "$" char to the Delimiters-Section

     I'm not sure if the <KeyWords>-Part is necessary ...

    Regards

    Siegi
     

    Siegfried Pammer
  • 02-02-2007 10:18 PM In reply to

    • Cory
    • Not Ranked
    • Joined on 01-18-2007
    • Posts 3

    Re: PHP highlighting and MarkNextWord

    Sorry for the long delay in posting I forgot about the thread, but I just tried out your method and it worked great.

    Thanks for that.

     

    -Cory
     

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.