Subject: Big Question · Posted: 2004-01-04, 01:31pm
Rank: ? (1200)
Member #: 12930
ok, so I want to submit a tutorial but there are going to be codes in it. When I wrote them, the codes where not codes anymore, they were actually what they are suppose to be. So what can I do so that it would show it as a code?
Subject: Re: Big Question · Posted: 2004-01-04, 02:21pm
Rank: ? (2172)
Member #: 11609
I don't know if you can use "code" on tutorials. Use textareas.
On the forums, you can use [ code ] code here [ / code ] (without the spaces) to highlight PHP syntax.
A guy gets on a bus and starts threatening everybody: "I'll integrate you! I'll differentiate you!!!" So everybody gets scared and runs away. Only one person stays. The guy comes up to him and says: "Aren't you scared, I'll integrate you, I'll differentiate you!!!" And the other guy says: "No, I am not scared, I am e to the power of x."
Subject: Re: Big Question · Posted: 2004-01-04, 02:28pm
Rank: ? (614)
Member #: 9832
If I remember right, for php I just left the <?php-tag out and the code displayed as text. (makes sense really...)
My php-tutorial didn't seem to validate though so maybe I should not give advise to people...
Chaos reigns within - Reflect, repent, and reboot - Order shall return
Subject: Re: Big Question · Posted: 2004-01-05, 10:42am
Rank: ? (862)
Member #: 2
Simply replace all "<" with "<" and all ">" with ">" when you want them to display. Also, you should put your code in "<pre>" tags to conform to Free2Code's Tutorial standards.. The <pre> tag will automatically be converted into a texarea with a "Select All" button. Much easier for users.