• The forum software that supports hummy.tv has been upgraded to XenForo 2.1!

    This upgrade brings a number of improvements including the ability to bookmark posts to come back to later. Please bear with us as we continue to tweak things and open a new thread for any questions, issues or suggestions in Site/Forum Issues.

New Support for Jim syntax highlighting

af123

Administrator
Staff member
I've added a module for formatting jim code in code blocks... XenForo supports dozens of languages out of the box but not this one and, since it's used a lot in the custom firmware packages, we should have it.

Jim Code:
set nocommit 0
if {[llength $argv] < 1} {
        sleep [rand 0 120]
} elseif {[lindex $argv 0] eq "nocommit"} {
        set nocommit 1
} elseif {[lindex $argv 0] ne "now"} {
        set delay [lindex $argv 0]
        if {![string is digit -strict $delay]} {
                puts "Syntax error."
                exit
        }
        sleep [rand 0 $delay]
}

proc ack {cid} {
        if {[string is integer -strict $cid]} {
                exec /mod/bin/rs ack $cid
        }
}
Just use the insert code menu, or standard [code=jim]...[/code] tags.
(or, with markdown enabled
```jim
...
```
)
 
Top