NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Synchronize Code Templates with Dynamic Syntax Highlighting


Joined: 31 Jul 2005
Posts: 16
Reply with quote
Current behaviour:
Selection of available Code Templates follow the file type of the current file.

Desired behaviour:
Optionally, the selection of available code templates should follow the current syntax highlighting style when "Dynamic highlighting" is on.

Possible implementation:
- Add the following sub-option to "Dynamic highlighting": "Dynamic code templates". The option should only be available when "Dynamic highlighting" is checked.
- When enabled, the selection of available code templates will follow the current syntax highlighting style.

Usage Example:
In foo.php:
1) Outside a PHP block, we wish to insert a <script> block using code templates: As this is available in the HTML code template library, we just position the cursor outside a PHP block (that is; in the HTML part of the .php) and type "scri", Ctrl + J.
2) Inside the javascript block, we want to insert a function declaration using code templates: As this is available in the JavaScript code template library, we just position the cursor inside the javascript block (that is; in the JavaScript part of the HTML part of the .php Smile and type "fun", Ctrl + J.
View user's profileFind all posts by j0rg3nSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8350
Reply with quote
totally agreed.
It will be done shortly.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Synchronize Code Templates with Dynamic Syntax Highlighting
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