HOW DO I DO IT ????
-
I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"
-
I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"
This board accepts html tags in your posting. To include blocks of code you can use <PRE> or <CODE> If I put in <PRE> Some text </PRE> I get:
Some Text
<CODE> Produces text
Like This
(To make actual HTML appear as text you use "<" in place of "<") -
I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"
Sagiv this is done using the HTML tags <pre> and </pre>. You place them around your code and they keep the formatting exactly as you had it. Start your code immediately after <pre> on the same line or else you will get a blank line above your code. If you want to have a blank line between code you need to have a space on the line.
void main()
{
return;
}Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018