#79 Higlighting does not work properly


When in PHP a line is written like so:


the highlighter sees this as the end in PHP

Obviously the code isnt done then.

Script works highlight stinks....

Any fix/workaround?


  • Flávio Etrusco

    Flávio Etrusco - 2005-06-27

    Logged In: YES

    Yes there's one, but it's awkward.
    You must implement the OnCheckEndMarker of your PHP Scheme
    and set aMarkerLen to 0 or aMarkerText to '' aproprietately.
    Unfortunately the Markers aren't searched in the same order
    as the tokens are parsed; you can't simply use the context
    information from SynMultiSyn.CurrScheme and .GetTokenId from
    current (sub)highlighter. You'll have to parse all line up
    to aStartPos.

  • Flávio Etrusco

    Flávio Etrusco - 2005-06-27
    • status: open --> open-invalid
  • Flávio Etrusco

    Flávio Etrusco - 2005-06-27
    • status: open-invalid --> open-later
  • Flávio Etrusco

    Flávio Etrusco - 2005-06-27

    Logged In: YES

    Err, wrong Resolution.
    This case should be quite easy to fix, so it might be worth.
    Unfortunately I plan to fix this since ever and always get
    back to thinking it's a waste of time and we'd better spend
    it on dynamic highlighters...

  • Krystian Bigaj

    Krystian Bigaj - 2005-06-27

    Logged In: YES

    It's not bug. TSynMultiSyn works on RegExpr, simple search
    start/end tags (as text, not tokens).

    ps. Now I work on one big highlighter for (X)HTML, CSS, JS,
    PHP. For more info. go here:
    (latest public demo in first comment at bottom). For HTML
    and CSS now (not public) there is an almost full syntax and
    property checking (rules for parsing from W3C.org). Support
    for PHP and JS in about 2-3 weeks.

    ps2. Your example ($p4="?>";) will work fine with this

  • Flávio Etrusco

    Flávio Etrusco - 2006-01-25
    • milestone: --> 307039
  • Flávio Etrusco

    Flávio Etrusco - 2007-01-23
    • labels: 672435 -->
    • milestone: 307039 -->

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks