EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Improved syntax scheme association
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Flint
Posted on: 6/13/2008 9:10 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Improved syntax scheme association
Now Opera 9.5 was finally released, with all its advantages and disadvantages. One of the latter is complete removing file extensions from the cached files. Now when I try to view source HTML code (of course, I'm using EmEditor, not Opera's internal viewer), the file is opened just as Text, not as HTML, because the file is named something like opr000A3, and no extension at all.

Unfortunately, Opera men seem to put it like the greatest super-convenient feature, though it is obviously not (at least, for me and for many other users complaining at that from the very first alphas), and they strongly refuse to return extensions back. Hence, my suggestion: what if EmEditor allowed special association rules, like e.g. "All files from the following folder are HTMLs"?

<Added>
Just now I found that I knew very little about EE possibilities: I have just set /c HTML command line parameter for opening source code from Opera, and all this works fine! For the nth time I discover what a great program EE is!

Anyway, extended association rules still may be very useful. For example, to set specific syntax for Makefile, or to README files (that are also without extensions and therefore cannot be distinguished from each other).
Yutaka
Posted on: 6/14/2008 7:59 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Improved syntax scheme association
Quote:

Flint wrote:
Now Opera 9.5 was finally released, with all its advantages and disadvantages. One of the latter is complete removing file extensions from the cached files. Now when I try to view source HTML code (of course, I'm using EmEditor, not Opera's internal viewer), the file is opened just as Text, not as HTML, because the file is named something like opr000A3, and no extension at all.

Unfortunately, Opera men seem to put it like the greatest super-convenient feature, though it is obviously not (at least, for me and for many other users complaining at that from the very first alphas), and they strongly refuse to return extensions back. Hence, my suggestion: what if EmEditor allowed special association rules, like e.g. "All files from the following folder are HTMLs"?

<Added>
Just now I found that I knew very little about EE possibilities: I have just set /c HTML command line parameter for opening source code from Opera, and all this works fine! For the nth time I discover what a great program EE is!

Anyway, extended association rules still may be very useful. For example, to set specific syntax for Makefile, or to README files (that are also without extensions and therefore cannot be distinguished from each other).


I am glad you figured out. Also, you can use "EMEDHTML.EXE", which is equivalent to emeditor.exe /c HTML.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

owilsky
Posted on: 6/17/2008 12:30 am
Just can't stay away
Joined: 2/12/2008
From:
Posts: 76
Re: Improved syntax scheme association
Also you can write a macro that triggers when opening a file like this:

var r, re;
re = /foldername/i; //Create regular expression pattern
r = document.FullName.match(re); //Attempt match on search string.
if(r != null) document.ConfigName = "HTML";
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文