NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
syntax highlighting


Joined: 04 Nov 2014
Posts: 4
Reply with quote
I want to give all php files that return json the .json extension.

When I change the extension to json, I lose syntax highlighting for php.

Is there a way to solve this?

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


Joined: 18 May 2006
Posts: 61
Reply with quote
Try to click file type name (for JSON file will be JSON) next to current file character encoding name in status bar and choose "PHP".

Alternatively you can give "name.php.json" instead of "file.json" to the file of interest and register file mask "*.php.json" (without quotes) as an alernative file mask for the PHP file.
You can do so in Settings dialog at the "Associations" page.
View user's profileFind all posts by mdegtyarevSend private message
Syntax highlighting


Joined: 04 Nov 2014
Posts: 4
Reply with quote
The first method worked just fine. Thank you.
View user's profileFind all posts by delpi767Send private message
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