^_^

2010年9月20日星期一

如何为 UltraEdit 设定 Erlang 语法高亮

  • 从 UltraEdit 的“高级 - 配置 - 语法高亮”,找到“WORDLIST 文件完整路径名称”,直接点击“打开”按钮。
  • 移动到该文件末尾,添加下面内容。注意头部“/L10”指的是第十种语言,你应该按照实际情况更改。
    /L10"Erlang" ERLANG_LANG Line Comment = % String Chars = " Escape Char = ~ File Extensions = ERL YRL HRL
    /Colors = 0,8421376,8421376,8421504,255,
    /Colors Back = 16777215,16777215,16777215,16777215,16777215,
    /Colors Auto Back = 1,1,1,1,1,
    /Font Style = 0,0,0,0,0,
    /Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./()!]++)[~;]"
    /Indent Strings = "->"
    /Open Brace Strings =  "{" "(" "["
    /Close Brace Strings = "}" ")" "]"
    /C1"Keywords" STYLE_KEYWORD
    after
    begin
    case catch compile
    define
    else end end. error export
    false
    if import include
    module
    of
    receive
    throw true try
    when
    /C3"BIF" STYLE_COMMAND Colors = 33023 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
    abs append_element apply atom_to_list
    binary_to_list binary_to_term bump_reductions
    cancel_timer check_process_code date
    delete_module demonitor disconnect_node display
    erase exit fault float float_to_binary
    fun_info fun_to_list garbage_collect get
    get_keys group_leader halt hash hd hibernate
    integer_to_list is_alive is_builtin
    length link list_to_atom list_to_binary list_to_float
    list_to_integer list_to_pid list_to_tuple load_module
    loaded localtime localtime_to_universaltime make_ref
    make_tuple md5 md5_final md5_init md5_update memory
    module_loaded monitor monitor_node node nodes now
    open_port phash phash2 pid_to_list port_close
    port_command port_connect port_control port_call
    port_info port_to_list ports pre_loaded element
    process_flag process_info processes purge_module
    put read_timer ref_to_list register registered
    resume_process round self send send_after spawn
    send_nosuspend set_cookie setelement size spawn_link
    spawn_opt split_binary start_timer statistics
    suspend_process system_flag system_info system_monitor
    term_to_binary time tl trace trace_info trace_pattern
    trace_pattern trunc tuple_to_list universaltime
    universaltime_to_localtime unlink unregister whereis
    yield process_display send_nosuspend binary_to_float
    ncat_binary loat_to_list get_cookie info
    is_process_alive
    /C4"Operators" STYLE_OPERATOR
    :
    #
    bnot
    not
    /
    *
    div
    rem
    band
    and
    +
    -
    bor
    bxor
    bsl
    bsr
    or
    xor
    ++
    --
    >
    <
    =<
    >=
    ==
    /=
    =:=
    =/=
    andalso
    orelse
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/ ]
文章标题: 如何为 UltraEdit 设定 Erlang 语法高亮
文章地址: https://blog.foolbear.com/2010/09/ultraedit-erlang.html

没有评论 :

发表评论

Related Posts with Thumbnails