Just for syntax highlight test
Seems not supported yet.
sh
history | sed "s/ *[0-9]* *//"
public static void main(String[] args) { System.out.println("Hello world"); } // sed // to test if sed will get keyword highlighted
c
#include <stdio.h> int main() { printf("hello world!¥n"); return 0; }
object DefaultArrayValue { def main(args: Array[String]) { println("Execute test") } }
a = (1, 2, 3) a1, a2, a3 = a print a1 print a2 print a3
js
(function() { var localSettings = { bookmarkKeyChar: 'D', bookmarkSpecialKey: 'alt' }; })
class Hoge def fuga 'fuga' # return fuga end end
Auto Recognition (?)
#!/usr/bin/env sh COMMANDS=( "qstat" "qalter" "checkjob" ) ERROR=0 for (( i=0; i<${#COMMANDS[@]}; i++ )) do cmd=${COMMANDS[$i]} CMD_PATH=`which $cmd 2>/dev/null` if [ $? -ne 0 ] then echo Could not find $cmd in PATH ERROR=1 fi done