JavaScript高亮
This javascript will validate/allow the number only when event key is pressed. For example result of it:
tutorial above, when you can not directly add the attribute inside html tag. but if you can add it, you can following this tutorial bellow:
Refference: http://stackoverflow.com/a/7295864
Java高亮
C语言高亮
#include <stdio.h>
int main()
{
printf("Hello world!\n");
return 0;
}