Syntax Highlighting and Auto-Complete Parentheses for SML?

Syntax highlighting, code folding, brace matching, code indenting, and function list

Syntax Highlighting and Auto-Complete Parentheses for SML?

Postby Munna2002 » Thu Sep 23, 2004 3:29 pm

Hi,

How do I incorporate SML highlighting and auto-complete features (parenthesis) for SML Code? I'd like this to be similar to C++ and C editing in Ultraedit.

Please let me know if this is possible.

Thanks. :?:
User avatar
Munna2002
Newbie
 
Posts: 2
Joined: Wed Sep 22, 2004 11:00 pm

Re: Syntax Highlighting and Auto-Complete Parentheses for SML

Postby Mofi » Fri Sep 24, 2004 1:34 am

Look on Downloads - Extras and download or open the "AML (Arc Macro Language) & SML (Simple Macro Language)" syntax highlighting wordfile.

Open UltraEdit, goto Advanced - Configuration - Syntax Highlighting and click on the Open button to open your wordfile (normally Wordfile.txt in UltraEdit directory). Close the configuration dialog with Cancel.

Go to the end of the wordfile and copy the whole content of the AML/SML wordfile to the wordfile of UltraEdit. Then replace the language number /L20 (line starts with /L20) of the AML/SML language with the first number, which is not used by an other language in the wordfile.

Save the wordfile and restart UltraEdit and SML files should be highlighted and auto correct should work. Open again the syntax highlighting configuration dialog, if you want to change the colors or styles for SML.

See also help of UltraEdit about Syntax Highlighting.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Syntax Highlighting and Auto-Complete Parentheses for SML

Postby Munna2002 » Fri Sep 24, 2004 4:19 am

Thanks for the reply. I followed the directions and used the AML/SML wordfile. Some of the items are syntax highlighted. The important ones that are not highlighted are key words like fun, then, else, List.fold, List.nth, etc. Also commenting is not highlighted. Is there a better wordfile or can someone tweak this to be better?

Can anyone help to improve the syntax highlighting for AML/SML (if, then, etc.).

Thanks.
User avatar
Munna2002
Newbie
 
Posts: 2
Joined: Wed Sep 22, 2004 11:00 pm


Return to Syntax Highlighting