Emerald Editor Discussion
September 25, 2017, 04:09:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Files without extension.  (Read 5936 times)
0 Members and 1 Guest are viewing this topic.
ekerner
Prospector
*
Posts: 3


« on: December 14, 2009, 08:13:18 am »

Hi All,

I try not to use extensions for my website pages (Like for example: http://www.google.com/search).

So is there a way to apply a syntax highlighter to such a file in Crimson Editor?

Non-extensioned files are fairly common practice these days using apache's FilesMatch and ForceType directives.

Thanks,
Eugene.
Logged
Pvt_Ryan
Master Jeweller
******
Posts: 422



WWW
« Reply #1 on: December 14, 2009, 12:12:19 pm »

Yes. look in the menu bar (view maybe) for syntax just click on the syntax you want. CE will forget on closing and will not auto syntax.
Logged
KjeBja
Senior Miner
***
Posts: 76


« Reply #2 on: December 15, 2009, 07:39:21 am »

If the first line in your files always contains one spesific word, you can use a firstline file. Firstline files are found in the link directory. This is described in the help docs (Crimson Editor Help Topics --> (Custom Syntax Files) Link Files). Syntax highlighting using this method does not work when the file is new, but it will when you reopen the file. When the file is new you can always use the method described by Pvt_Ryan.
Logged
ekerner
Prospector
*
Posts: 3


« Reply #3 on: December 16, 2009, 03:15:36 am »

Yes, its under Document->Syntax Type.

It doesnt work for php even if the file has and extension.

If I load a php file with an extension the syntax works fine.
But if I then change that to something else, and then try to change it back I get black on white.

I tried a perl file without extension, I can set it to perl from the Document->Syntax Type menu but php doesnt work.

If I had the time Id download the source n fix myself but I dont.

Thanks,
Eugene
Logged
Phil
Administrator
Master Jeweller
*****
Posts: 427


« Reply #4 on: December 16, 2009, 06:25:57 am »

Yes, PHP doesn't seem to be working from the Syntax Type menu.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.087 seconds with 18 queries.