Loading ...
Sorry, an error occurred while loading the content.

6171Re: PHP Color Scheme

Expand Messages
  • dudeis1337
    Mar 2 10:13 AM
    • 0 Attachment
      Adding the php tags, etc to the stx file doesnt seem to work. I've
      tried doing what you suggested and just adding them to an existing
      #keyword.

      --- In editplus@yahoogroups.com, Peter Anderson <peter.anderson@...>
      wrote:
      >
      > dudeis1337 wrote:
      > > How do you change the color of the PHP start/end tags, semi-colons,
      > > etc? I dont see any ui option or ini option.
      > The following is an exerpt from the EditPlus PHP syntax file:
      >
      > #TITLE=PHP 5 including predefined variables, classes and constants
      > ; By PHP Manual (2007-11-25) on www.php.net
      > ...
      > ; 13.06.2008 - added HTTP_RAW_POST_DATA
      >
      > #CASE=n
      >
      > #DELIMITER=,(){}[]-+*%/="`'~!&|<>?:;.#@<<<
      > #QUOTATION1='
      > ...
      > #NUMBER_PATTERN=cpp
      > #SKIP_QUOTE=y
      >
      > #KEYWORD=Reserved words [1]
      > -
      > !
      > $
      > ...
      > +
      > <
      > =
      > >
      > {
      > }
      > __CLASS__
      > __FILE__
      > ...
      >
      > Note the both "<" and ">" are under the "#KEYWORD=Reserved words [1]"
      > heading. EditPlus changes the syntax colouring based on which #KEYWORD
      > category the particular syntax element is listed. EditPlus syntax files
      > allow (I think) five #KEYWORD headings (see
      > http://editplus.info/wiki/Syntax_file_format to make sure). The PHP
      > syntax file I have only uses three #KEYWORD headings.
      >
      > So if you really wanted your PHP script delimeters to be in a different
      > colour you could try adding something like this to your PHP syntax file:
      >
      > #KEYWORD=PHP delimeters
      > <?php
      > ?>
      >
      > See the web page link. Hope that helps.
      >
      > Peter
      > --
      > *Peter Anderson*
      > There is nothing more difficult to take in hand, more perilous to
      > conduct, or more uncertain in its success, than to take the lead in the
      > introduction of a new order of things—Niccolo Machiavelli, /The
      Prince/,
      > ch. 6
      >
    • Show all 4 messages in this topic