- November 25, 2008 at 8:29 pm #6673maxim2004Member
Your perfect editor misses a very important kind of plugin – a configurable pretty-print code formatter that would use some sort of configuration files similar to syntax files for programming languages you have now in EmEditor.
A perfect illustration of idea is Eclipse 3 IDE for Java which permits to autoformat any section of java file with key combination Ctrl+Shift+I on selected section of text.November 27, 2008 at 3:11 am #6680dreftymacParticipant
This can be done very easily with a macro if you have a parser or processor that can be run from the Windows command line against a file via your own custom function.
For example, you can pass the currently selected text to a function that cleans up the code for whatever default syntax you are using.
mysyntax = document.ConfigName;
mycode = document.selection.Text;
myresult = MyCleanupSyntax(mysyntax,mycode);
document.selection.Text = myresult;
The hard part will be finding a code-formatter that you can plug into your MyCleanupSyntax function. I am sure there are plenty available for Java-style syntax.December 5, 2008 at 5:12 pm #6710maxim2004Member
Thanks, pal. Somehow I missed the possibility of writing macros. I’ll experiment.
- You must be logged in to reply to this topic.