| | |
Formated Source Code
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
Code View
In the linked page u can see that source code is properly formated, how to do that??
I am making my web, i want to know that how can i show the c++ source code on my web with proper format.
Q: How to show a formated source code on a HTML Page.
Thanks.
In the linked page u can see that source code is properly formated, how to do that??
I am making my web, i want to know that how can i show the c++ source code on my web with proper format.
Q: How to show a formated source code on a HTML Page.
Thanks.
Use
Note the
<pre></pre> or <code></code> tags around it like: html Syntax (Toggle Plain Text)
<pre> #include <iostream> int main(int argc, char** argv) { std::cout << "Hello World!\n"; return 0; } </pre>
Note the
< . Make sure you encode any HTML entities (<, >, &, etc.) so they don't get mixed in with the markup Last edited by ShawnCplus; Oct 2nd, 2009 at 3:48 pm.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
![]() |
Similar Threads
- News Story: Kraken bot cracked open to reveal source code (Network Security)
- Source code for printf, scanf, cin, cout? (C)
- News Story: OpenBSD developers pirating Linux source code (Linux Servers and Apache)
- Source code implementing Latent Semantic Indexing (C++)
- RE: Leaked Windows Source Code (IT Professionals' Lounge)
- Windows 2K source code? (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: PHP Confirmation
- Next Thread: act directly on an array value returned by a function?
| Thread Tools | Search this Thread |
6 2007 access actionlistener advice ajax api blogger blogging bluray browser bug c++ cart code codebox combo computer convert css daniweb data debugging dell design development dice digital dom dropdownlist dvd editor file firefox firewall form format fsf game gdata glitch google gpl hd html hyper ie8 iframe internet introductory java javascript joomla key layer linus linux microsoft module mosaic net news open operatingsystems php post preview problem proficiency program programming py python reuse rss singleton snippet software sony source static string test time tutorial ubuntu university vb vb.net video virus vista visual visualbasic w3c web windows wxpython wysiwyg xml







