Linux / UNIX Tech Support Forum
This is a discussion on Add HTML Code Inside HTML File within the Coding in General forums, part of the Development/Scripting category; hey all.. i am building a new simple website in basic html codes. my website explains about how to build ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
You need to use command such as highlight to convert html code so that it can be displayed on screen.
Code:
highlight -i input.html -o output.html -S php Code:
<html>
<head>
<title>This is a test</title>
</head>
<body>
<h1>This is a test</h1>
Let us see how to create a html page:
<pre>
<html>
<head>
<title>First HTML Page</title>
</head>
<body>
<h1>First HTML Page</h1>
</body>
</html>
</pre>
</body>
</html>
W3Schools Online Web Tutorials
__________________
Vivek Gite Linux Evangelist |
|
||||
|
You need to install hightlight command using apt-get or yum.
__________________
Vivek Gite Linux Evangelist |
|
||||
|
Wow, highlight sounds brilliant - not tried it yet, but the documentation page at GNU Source-highlight 2.10 makes it look very interesting - to think that I may have wasted so much time re-formatting my <pre> code...
|
|
||||
|
Quote:
Quote:
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| highlight , html code , shell script html , sourcecode to formatted |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to follow symlink on /var/www/html | demuytree | Shell scripting | 0 | 15-10-2008 11:05 PM |
| Script to strip all slack from php, html, js | meowing | Shell scripting | 4 | 03-05-2008 02:37 AM |
| Perl simple html mail | chiku | Coding in General | 3 | 17-08-2007 07:59 PM |
| HTML variable | nathan86 | Linux software | 3 | 23-03-2005 12:29 PM |
| HTML Program cannot open in cgi-bin folder | sonaikar | Linux software | 5 | 04-02-2005 04:45 PM |