NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Pseudo String Types


Joined: 19 Nov 2006
Posts: 8
Reply with quote
It would be good if your syntax highlighting and code completion were sensitive to pseudo string types, string types that are for specific purposes and recognized by your syntax highlighting and code completion only.

$thisStuff_html would be treated as html
$thatStuff_js would be treated as javascript
$myVar_SQL would be treated as SQL

The '_type' format is only one possibility, but it seems the most intuitive. Code completion could offer the available subtypes whenever the underscore is typed within a word beginning with a $. It would also be important that this work with the heredoc syntax.

So if I enter $myVar_html = "... everything that follows before the closing quote would be treated by syntax highlighting and code completion as though it were html outside the <?php ... ?> tags and inside the <html> ... </html> tags. Likewise with the other languages. Similarly, the selective highlighting that lights up all html when the cursor is within any html would respond in the same way when the cursor is within a string of type _html.
View user's profileFind all posts by cgweaverSend private message
Pseudo String Types
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic