Home Download Buy Blog Forum Support

Syntax highlighting for nested html?

Syntax highlighting for nested html?

Postby totoff on Sat Aug 18, 2012 10:13 am

Hello Forum,

sorry if this has been answered elsewhere, I didn't find appropriate answer and maybe my English isn't good enough to cover all relevant search terms ...

However, I'm coding in PHP with nested HTML as string. For example:

Code: Select all
foreach($page->children("limit=10") as $child) {
echo "<div class='project teaser'>";
echo "<p class='meta'><a href='{$child->url}'>{$child->project_commission}&nbsp;{$child->title}</a></p>
<p class='summary'>{$child->summary}&nbsp;<a href='{$child->url}' title='{$child->title}'>&nbsp;+&nbsp;Mehr erfahren</a></p>";
echo "</div>";

With this coding style I'm losing syntax highlighting for the html pieces. Is there a way to maintain it? I have the Soda-Theme installed together with Monokai for Soda.

Thanks for your help
Posts: 9
Joined: Sat Mar 17, 2012 4:49 pm

Re: Syntax highlighting for nested html?

Postby chris.george on Wed Aug 22, 2012 3:16 pm

I ran into this problem as well, basically the explanation I received was the limitation of the textmate color-schemas. I still haven't been told whether a sublime-theme file would fix this though.
Posts: 7
Joined: Mon Aug 13, 2012 3:29 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 16 guests