Micolog附带的代码高亮plugin,支持的语言还不少,展示一下:

Bash:

#!/bin/bash
OPTIONS="Hello Quit"
select opt in $OPTIONS; do
    if [ "$opt" = "Quit" ]; then
        echo done
        exit
    elif [ "$opt" = "Hello" ]; then
        echo Hello World
    else
        clear
        echo bad option
    fi
done

C/C++:

#include <stdio.h>

int main(void)
{
    printf("Hello\n");

    return 0;
}

Pascal:

program jsq;
var a,b,m:real; ch:char;
begin
 readln(a);
 readln(ch,b);
 case ch of
  '+':m:=a+b;
  '-':m:=a-b;
  '*':m:=a*b;
  '/':m:=a/b;
  '^':m:=exp(b*ln(a));
 end;
 writeln(m:0:10);
 readln;
end.

VB:

Public Class StarsProgram
    Public Shared Sub Main()
        Dim UserName, Answer, stars As String, NumStars As Integer
        Console.Write("What is your name: ")
        UserName = Console.ReadLine()
        Console.WriteLine("Hello {0}", UserName)
        Do
            Console.Write("How many stars do you want: ")
            NumStars = CInt(Console.ReadLine())
            stars = New String("*", NumStars)
            Console.WriteLine(stars)
            Do
                Console.Write("Do you want more stars? ")
                Answer = Console.ReadLine()
            Loop Until Answer <> ""
            Answer = Answer.Substring(0, 1)
        Loop While Answer.ToUpper() = "Y"
        Console.WriteLine("Goodbye {0}", UserName)
    End Sub
End Class

Python:

class Fish:
    def eat(self, food):
        if food is not None:
            self.hungry=False