int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize (300, 300);
glutInitWindowPosition (400, 400);
glutCreateWindow ("Click Me!");
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutMouseFunc(mouse);
glutMainLoop();
return 0; /* ANSI C requires main to return int. */
}
So, this highlighter effect looks better than the one in previous article, right? Because I have found some other more cool methods to highlight our codes more efficiently and coolly.
1. ToHtml.com generates the highlight codes above, with 10 different visual style and over 20 programming languages, I like it the most.
2. Codecolor has 6 language highlight possibilities
3. neathighlighter supports also over 20 programming languages, and is able to converge the code into PHP, CSS, Javascript and HTML four different ways or even mixed. It is also a nice tool.
4. GeSHi also supports for a wide range of popular languages, but you should be the member to obtain the HTML code. :(
5. Pygments the input way is upload the source code file, interesting....
6. CodeColorizer is able to support 10 kinds of languages for the highlight, simple but useful.
Last article I have introduced another 2 methods, I guess they are already enough for us to paste our art works in our vitual world.
ontheweg


0 comments:
Post a Comment