Archived

This forum has been archived. Please start a new discussion on GitHub.

Any editor with SLICE syntax highlight ?

Is there a text editor which can support syntax highlight for slice?

Thanks.

Comments

  • Vim 6.3 has a file plugin for slice. You can also easily configure Emacs (or XEmacs) to use the IDL mode when editing slice files.

    Are there really any other editors worth mentioning? ;)
  • If you are using the UltraEdit-32, find out the WORDFILE.TXT at the same directory of the ULTRAEDIT.EXE, and append this segment to the WORDFILE.TXT file:


    /L8"ICE" Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = ICE
    /Delimiters = ~!@%^&amp;*()-+=|\/{}[]:;"'<> , .?
    /Function String = "%^([a-zA-Z_0-9]+^)[ ^t]++([^p*, a-zA-Z_0-9]++)[~;]"
    /Function String 1 = "%[a-zA-Z_0-9]*::^([a-zA-Z_0-9]+^)[ ^t]++([^p*, a-zA-Z_0-9]++)[~;]"
    /Function String 2 = "%[a-zA-Z_0-9]* ^([a-zA-Z_0-9]+^)[ ^t]++([^p*, a-zA-Z_0-9]++)[~;]"
    /Indent Strings = "{"
    /Unindent Strings = "}"
    /C2"Keywords"
    bool byte
    class const
    dictionary double
    enum exception extends
    false float
    idempotent implements int interface
    LocalObject local long
    module
    nonmutating
    Object out
    sequence short string struct
    throws true
    void
    /C1
    #define #error #include #elif #if #line #else #ifdef #pragma #endif #ifndef #undef
    /C4"Operators"
    +
    -
    =
    // /
    %
    &
    >
    <
    ^
    !
    |



    /C1 stands for red color while /C2 stands for blue. You can change it as u like.

    regards,
    Oops