Hi there,
I’m new to Sublime Text, which has quite impressed me so far, especialy with its minimap feature and the customization possibilities.
However I came across some little bugs regarding regex matching / code highlighting while I was working on my own web developer ST theme:
Issue 1 (solved (see 2nd post below)).
Sublime Text can’t recognise / highlight PHP code when it is placed within a Javascript string. Example:
<script type="text/javascript" language="JavaScript1.2">
location.href = '<?php echo $_SERVER'PHP_SELF']; ?>';
</script>
Issue 2 (solved (see next post below)).
Script tags don’t get recognised as JS code if there is no character placed between start and end script tag.
E. g. this won’t get highlighted as JS code, although it should IMO:
<script type="text/javascript" src="jquery.js"></script>
This however does get highlighted (notice the space between the tags):
<script type="text/javascript" src="jquery.js"> </script>
Would be nice to see these issues fixed in the next update
In the meanwhile, would someone like to help me fix these in the .tmLanguage files (I had no luck so far)?
Ko3