howtothings.co.uk
Programming language highlighting - Printable Version

+- howtothings.co.uk (https://www.howtothings.co.uk)
+-- Forum: Open Discussion (https://www.howtothings.co.uk/forumdisplay.php?fid=5)
+--- Forum: The Lounge (https://www.howtothings.co.uk/forumdisplay.php?fid=18)
+--- Thread: Programming language highlighting (/showthread.php?tid=109)



Programming language highlighting - Mark - 10-06-2010

[code=python]
name = raw_input ("What is your name? ")
print "Hi " + name
[/code]

[code=python]
a = 1
b = 2
c = a + b
if c = 3:
print ("Mark is a genius")
[/code]


RE: Programming language highlighting - Mark - 10-06-2010

COBOL anyone?

[code=cobol]
age := age + years
[/code]


RE: Programming language highlighting - Mark - 10-06-2010

[spoiler=HTML CODE (big)]
[code=html]
<head>
<LINK REL="fav icon" HREF="images/favicon.ico">
<link rel="stylesheet" type="text/css" href="cache/themes/rulereminder.css" />

<title>mcompute.co.uk forums</title>

</head>
<body>

<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div class="logo"><a href="http://mcompute.co.uk/index.php"><img src="http://mcompute.co.uk/images/orangeaccent/logo.png" alt="mcompute.co.uk forums" title="mcompute.co.uk forums" /></a></div>

<div class="menu">
<ul>

<li><a href="http://mcompute.co.uk/index.php"><img src="http://mcompute.co.uk/images/orangeaccent/toplinks/home.gif" alt="" title="" />Home</a></li>
<li><a href="http://mcompute.co.uk/search.php"><img src="http://mcompute.co.uk/images/orangeaccent/toplinks/search.gif" alt="" title="" />Search</a></li>
<li><a href="http://mcompute.co.uk/memberlist.php"><img src="http://mcompute.co.uk/images/orangeaccent/toplinks/memberlist.gif" alt="" title="" />Member List</a></li>
<li><a href="http://mcompute.co.uk/member.php?action=emailuser&uid=1"><img src="http://mcompute.co.uk/images/orangeaccent/toplinks/calendar.gif" alt="" title="" />Contact</a></li>
<li><a href="http://mcompute.co.uk/misc.php?action=help&hid=8"><img src="http://mcompute.co.uk/images/orangeaccent/toplinks/help.gif" alt="" title="" />Rules</a></li>

</ul>
</div>
<hr class="hidden" />
<div id="panel">
<!-- start: header_welcomeblock_member -->
<span style="float:right;"><strong>Current time:</strong> 10-06-2010, 06:20 PM</span>
<strong>Welcome back, Mark</strong>. You last visited: Today, 05:22 PM (<a href="http://mcompute.co.uk/usercp.php"><strong>User CP</strong></a><!-- start: header_welcomeblock_member_moderator -->

&mdash; <a href="http://mcompute.co.uk/modcp.php">Mod CP</a>
<!-- end: header_welcomeblock_member_moderator --><!-- start: header_welcomeblock_member_admin -->
&mdash; <a href="http://mcompute.co.uk/admin/index.php">Admin CP</a>
<!-- end: header_welcomeblock_member_admin --> &mdash; <a href="http://mcompute.co.uk/member.php?action=logout&amp;logoutkey=ed28cb401b5d29887df2b390a47ddc52">Log Out</a>)<br />
<span class="links">
<a href="#" onclick="MyBB.popupWindow('http://mcompute.co.uk/misc.php?action=buddypopup', 'buddyList', 350, 350);">Open Buddy List</a>

</span>
<a href="http://mcompute.co.uk/search.php?action=getnew">View New Posts</a> | <a href="http://mcompute.co.uk/search.php?action=getdaily">View Today's Posts</a> | <a href="http://mcompute.co.uk/private.php">Private Messages</a> (Unread 0, Total 10)
<!-- end: header_welcomeblock_member -->
</div>
</div>


</body>
</html>
[/code]
[/spoiler]