I was just browsing the web, searching for some nice WordPress plugins. During the installation of the Simple Multilanguage Plugin which allows you to change the language of a post (only if I wrote it in several languages, of course), I found another interesting plugin on their website, called ig:Syntax Hiliter. This plugin allows you to put source-code on your website with some.. yeah, who would have thought: syntax highlighting. I just put up the following two examples, showing the highlighting of Java and C#.
package sexy.girl.kodde; import Sytem.IO.*; public class TestClass { int timeSet; /** * This is the main function * * It writes text to the console, * if there are any arguments. **/ public static void main(String[] args) { // write to the console if(args.length > 0 ) { System.out.writeline("args: " + args[0]); } else { System.out.writeline("no args!"); } } }
using System.IO; namespace sexy.girl.kodde; { public class TestClass { int timeSet; ///<summary> /// This is the main function /// /// It writes text to the console, /// if there are any arguments. ///</summary> public static void main(String[] args) { // write to the console if(args.length > 0 ) { System.Console.WriteLine("args: " + args[0]); } else { System.Console.WriteLine("no args!"); } } } }
If you click the name of the language (with the small window icon) in the header, you’ll get the source-code without highlighting.
Moreover, you can now see all WordPress plugins I have installed, by visiting the Plugins page. The listing of that page is generated by the Plugins Used Plugin via PHP code, which is executed by the Exec-PHP Plugin.
Soll das heissen das du deine Beiträge ab jetzt immer Zweisprachig schreiben willst? Ich sehe da schon eine unvermeidliche Kollision mit deiner Faulheit… 😉
jane(Quote)
Some nice plugins you have found but I would probably be too lazy to write every post bilingual ^^‘
ziplies(Quote)
das wird sich dann ja zeigen. Ich versuche nur Ronald als Stammleser zu behalten 😉
koddistortion(Quote)
Löblich, löblich 🙂
jane(Quote)