Announcement

Collapse
No announcement yet.

PHP Source file format syntax colouring error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Source file format syntax colouring error

    In this:

    <style type="text/css">
    * { padding:0; margin:0; /* global reset */ }
    body { font:small/1.3 Verdana, Geneva, sans-serif; }

    the second line is erroneously coloured as a comment.

  • #2
    Our PHP file format is an additional download and has a variety of customer submitted ideas and tweaks. My PHP syntax knowledge is a bit rusty.

    How should we best handle this scenario? A grammar item that defines and contains * { to } ?
    Aaron P Scooter Software

    Comment


    • #3
      It seems to me it would be better to find out how this line got caught by the comment grammar item.

      Comment


      • #4
        The /* to */ matches the definition of a comment, and there is not a larger grammar item to override that or swallow it currently defined. Again, my PHP knowledge is rusty. What colors are you currently seeing on which text? And what colors do you expect them to be?
        Aaron P Scooter Software

        Comment


        • #5
          > The /* to */ matches the definition of a comment, and there is not a larger grammar
          > item to override that or swallow it currently defined.

          I see no evidence that rule is the problem.

          Since reversion to 12204 this problem has gone. If it recurs, I'll post a screenshot... fiorum attachment space permitting.

          Thanks Aaron.

          Comment

          Working...
          X