Viperpit(s).org

General discussion, User presentation & Admin => Announcements => Topic started by: AiRdAncE on December 04, 2014, 06:13:26 PM

Title: Code Highlighting
Post by: AiRdAncE on December 04, 2014, 06:13:26 PM
Since more and more our members are sharing code examples for Arduino's, PHCC, UCC, you name it, I figured that code highlighting would add to the forum.

The usage is simple. In your post, just enclose your code example between "code" BB tags. (use the pound # sign button on the post page).The result will look like this.

Code: [Select]
HttpCookie myCookie = new HttpCookie("MyTestCookie");
myCookie = Request.Cookies["MyTestCookie"];

// Read the cookie information and display it.
if (myCookie != null)
   Response.Write("<p>"+ myCookie.Name + "<p>"+ myCookie.Value);
else
   Response.Write("not found");

Neat, eh?  :cheerleader:
SimplePortal 2.3.5 © 2008-2012, SimplePortal