WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Erlang Module (3 posts)

  1. Daniel
    Member
    Posted 1 year ago #

    Hi,

    I've written a module for support of Erlang. Is it possible to add this in one of the next updates?

    The folder is named "erlang" and there are 4 files in it:

    erlang.txt:

    ### ERLANG ###
    
    # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
    
    	NAME					Erlang
    	VERSION				0.1
    
    	COMMENT				(%.*?$)
    	PREPROCESSOR 		(#.*?$)
    	STRING				((?<!\\)".*?(?<!\\)")
    
    	STATEMENT			\b(?alt:statements.txt)\b
    	RESERVED				(?default)
    	TYPE					(?default)
    	MODIFIER				\b(?alt:modifier.txt)\b
    
    	ENTITY				(?default)
    
    	VARIABLE				(\b[A-Z]([A-Za-z0-9_]*?)\b)
    	IDENTIFIER			(?default)
    	CONSTANT				(\b[a-z]([A-Za-z0-9_]*?)\b)|((?<!\\)'.*?(?<!\\)')
    	OPERATOR				(?alt:operators.txt)
    	SYMBOL				(?default)

    modifier.txt:

    -module
    -import
    -export

    operators.txt:

    =
    ==
    =:=
    /=
    =/=
    >=
    >
    <
    =<
    
    ++
    --
    
    +
    -
    *
    /
    div
    rem
    
    bnot
    bor
    bandb
    bxor
    bsl
    bsr
    
    and
    or
    not
    xor
    
    andalso
    orelse
    
    !
    :
    #

    statements.txt:

    if
    case
    of
    when
    receive
    end
    try
    catch
    throw
    fun
    after

    __________
    Perhaps, you like to download it as a .zip-package from here: http://netroid.de/data/erlang.zip
    It would be great, if this will be added in the following versions.

    Regards, Daniel

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Daniel! I've added it to the 1.14 beta which should be released very shortly.

  3. Daniel
    Member
    Posted 1 year ago #

    Thanks for adding it. Your PlugIn is great :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic