647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

I want to swtich completely over to sublime text, but this thing is drinving me crazy. I’ve searched everywhere and on the sublime forums i see more questions than answers and most answers aren’t even usefull.

So i’m going to try this for the last time over here :)

When working on a php file with html and php combined, and having php inside quotes it gets highlighted as a string, how do i get the php syntax highlighting working inside a string?

1066 posts
  • Located in United Kingdom
  • Has sold $5,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
  • Has referred 10+ members
+5 more
Alexlasek says

I ma not sure if I understood right. Could you provide an example, what you wanna do?

954 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Won a Most Wanted contest
+3 more
aleluja says

something like this?

\\

(this is notepad++ btw)

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Like this ?

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

something like this?

\\

(this is notepad++ btw)

Yes, like that. Between a double quote. I use the monokai colorscheme in ST2 but inside double quotes everything is highlighted as a string, even if you put in php like that. I need proper php highlighting everywhere between the pho begin and end tag ( <?php and ?> )

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by