General discussion, User presentation & Admin > Announcements

Code Highlighting

(1/1)

AiRdAncE:
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: ---
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");

--- End code ---

Neat, eh?  :cheerleader:

Navigation

[0] Message Index

Go to full version