NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Comments in Javascript files


Joined: 07 May 2014
Posts: 64
Reply with quote
Hi,

CTRL+/ is inserting wrong type of comments in Javascript files:

Code:

<!--        var a = 1;
        var b = 2;
-->


How can I change that behaviour to match comments inserted in PHP files:

Code:

//        var a = 1;
//        var b = 2;


Thanks!
View user's profileFind all posts by temuri416Send private message


Joined: 06 Nov 2013
Posts: 54
Reply with quote
check the type of the file, cuz i am using both // and /**/ comment short keys, and they are working swell.

Also check what key setting has to tell you
View user's profileFind all posts by r1d3rSend private message


Joined: 07 May 2014
Posts: 64
Reply with quote
> check the type of the file,

where exactly? The file has .js extension.

Thanks
View user's profileFind all posts by temuri416Send private message


Joined: 18 May 2006
Posts: 61
Reply with quote
File type displayed in status bar right after current file encoding (UTF-8, WINDOWS-1252, etc.).
For javascript file should be "JavaScript". May be changed by clicking file type name in the status bar.
View user's profileFind all posts by mdegtyarevSend private message
Comments in Javascript files
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