Sublime Forum

PHP syntax hightlighing

#1

Hi :smile:
I’m new to ST2, and love it!
I’ve managed to set it just the way I like it, but I’m missing some syntax highlighting for PHP. I’m sure that there’s a way to set these, but just don’t know how:

  • Change the foreground/background color of PHP code start/end tags: “<?" / "<?=" / <?php / "?>”

  • Change the foreground/background color of PHP code start/end tags, as above - but if the caret is inside a scope - change the color of the scope’s starting/ending tags in a different color

  • Change the foreground/background color of PHP variables contained within a string, i.e.: echo “Hello $variable”; - $variable will be colored

  • Has nothing to do with PHP, but would love that feature: change the background color of the entire current caret line (currently only the gutter changes the color)

Would appreciate any help setting these :smile:
Thanks in advance!

0 Likes

#2

bump :smiley:

0 Likes

#3

[quote=“jitzo”]Hi :smile:
I’m new to ST2, and love it!
I’ve managed to set it just the way I like it, but I’m missing some syntax highlighting for PHP. I’m sure that there’s a way to set these, but just don’t know how:

  • Change the foreground/background color of PHP code start/end tags: “<?" / "<?=" / <?php / "?>”

  • Change the foreground/background color of PHP code start/end tags, as above - but if the caret is inside a scope - change the color of the scope’s starting/ending tags in a different color

  • Change the foreground/background color of PHP variables contained within a string, i.e.: echo “Hello $variable”; - $variable will be colored

  • Has nothing to do with PHP, but would love that feature: change the background color of the entire current caret line (currently only the gutter changes the color)

Would appreciate any help setting these :smile:
Thanks in advance![/quote]

It is awesome.

Could you find a way to do that?

0 Likes