CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Command editor (https://www.cfd-online.com/Forums/cfx/20357-command-editor.html)

Andrea May 12, 2004 06:07

Command editor
 
There is a text editor used for to write command file with color facilities like fortan or c editor?

Glenn Horrocks May 12, 2004 18:16

Re: Command editor
 
Hi Andrea,

No, it does not exist. Feel free to write one, it would be quite useful!

Regards, Glenn

Jeff May 23, 2004 01:00

Re: Command editor
 
I've used nedit for years with it's syntax highlighting and added my own file type definitions for CFX-4 and CFX-5 command files (.fc and .ccl). You're best off learning from the other definitions (like C++ and Fortran) and then creating syntax rules for keywords and commands based on how they appear in the file (i.e. commands are followed by a ':' an keywords are followed by an '='). You can copy the rules for text and numeric constants also from these other syntax rules.

nedit is available on the internet free for most unix workstations. There's a semi-port for Windows but you have to run an X emulator and I've found it's more trouble than it's worth.

I think the Windows software EditPadPro will do something similar, although you have to buy the commercial version. The free lite version doesn't do syntax highlighting.

Jeff


All times are GMT -4. The time now is 14:38.