Yes. Downloaded geshi.tar.gz now what? Yes, PHP is on my server.
-OptimalDesigns
That's great to hear Phil!
Let's first do the proper container ("msg window"); once you approve it as suitable, we can focus on completing the highlighting
.
Okay, the DonationCoder page uses a
<div> instead of a <code> tag, so in order to match it, as you require, you must add this style to the <head>:
<style>
div
{
display: block;
}
.code
{
padding: 10px;
background: #eeeeef;
width: auto;
margin-left: 10px;
margin-right: 10px;
color: #000000;
font-family: monospace;
font-size: 13px;
line-height: 18px;
border: 1px solid #aaaaaa;
margin: 1px auto 1px auto;
white-space: pre-wrap;
word-wrap: break-word;
overflow: auto;
max-height: 40em;
}
</style>
And then when you want to insert some code, you can use:
<div class="code">
...Insert here...
</div>
I took the liberty to attach a modified "example_code.txt" file with highlighter tags removed, as well as <pre><code> replaced with the new <div> (see attached)