Sunday, September 14, 2008

Show Formatted Source Code with Syntax Highlight

LibG Code Viewer is a free web tool to view source code with syntax highlight.

After I finished my post How to format source code in your blog, I decided to make a small tool for anyone who post source code file on Internet. I called this tool "LibG Code Viewer", it used the method I described in my previous blog. Here is the usage of this tool:

http://libg.org/code.php?lang=your source language&url=link to your source code

Below is the list of supported language and sample:

LanguageParameterSample
C++cpphttp://libg.org/code.php?lang=cpp&url=http://libg.org/code/sample.cpp
C#csharphttp://libg.org/code.php?lang=csharp&url=http://libg.org/code/sample.cs
CSScsshttp://libg.org/code.php?lang=css&url=http://libg.org/code/sample.css
Delphidelphihttp://libg.org/code.php?lang=delphi&url=http://libg.org/code/sample.pas
Javajavahttp://libg.org/code.php?lang=java&url=http://libg.org/code/sample.java
Java Scriptjshttp://libg.org/code.php?lang=js&url=http://libg.org/code/sample.js
PHPphphttp://libg.org/code.php?lang=php&url=http://libg.org/code/sample.phpcode
Pythonpyhttp://libg.org/code.php?lang=py&url=http://libg.org/code/sample.py
Rubyrubyhttp://libg.org/code.php?lang=ruby&url=http://libg.org/code/sample.rb
Sqlsqlhttp://libg.org/code.php?lang=sql&url=http://libg.org/code/sample.sql
VBvbhttp://libg.org/code.php?lang=vb&url=http://libg.org/code/sample.vb
XML/HTMLxmlhttp://libg.org/code.php?lang=xml&url=http://libg.org/code/sample.xml

You can use the form below to test LibG Code Viewer:

Language:
Source Code Link:


3 comments:

  1. Awesome! I really like this!

    ReplyDelete
  2. Now is the perfect time to plan for the future and now is the time to be happy. I have read this article and if I can I want to suggest some interesting things or suggestions to you. Perhaps you could write future articles that reference this article. I want to know more!. PMP Training in Hyderabad

    ReplyDelete
  3. Awesome post! We first identify the requirements of our clients, then understand the areas of improvement. We then creatively document the required designs creating a blueprint accordingly.
    book typesetting services
    curriculum development company

    ReplyDelete