The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
Big Question
|
|||
|
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?
So... How is life?
|
||
|
|||
|
|||
|
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."
|
||
|
|||
|
|||
|
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
|
||
|
|||
|
|||
|
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.
So, like this: <pre> <html> <body> blah blah blah </body> </html> </pre> Would show a nice text box with: <html> <body> blah blah blah </body> </html>
-Terminal
|
||
|
Please login or register to post a reply.
