| | |
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: 8
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 |
access ada api automation basic blogger blogging bluray browser bug c# c++ cgi code combo computer convert css daniweb data dell development dice digital dropdownlist drupal dvd editor exam firefox form format fsf game gdata google hd head helpwithhomework html ide iframe image internet introductory java javascript joomla jpeg keyword layer linus linux microsoft module net newbie news open operatingsystems partition perl php post problem proficiency program programming prompt py python redhat reuse rss script scroll server software sony sort source string tagging test testautomation time tutorial unreadable url vb vb6 video virus vista visual visualbasic w3c web windows xml







