Site was updated to the newest version of PHPbb. Enjoy!

Quoting and outputting fixed-width text

This section will help you with some questions on how to do things on this board
Post Reply
User avatar
pertneer
Site Admin
Site Admin
Posts: 157
Joined: Wed Feb 18, 2009 2:27 pm
Build it or Buy it: Buy It
Contact:

Quoting and outputting fixed-width text

Post by pertneer » Mon Apr 13, 2009 12:07 pm

Quoting text in replies
There are two ways you can quote text, with a reference or without.

* When you utilise the Quote function to reply to a post on the board you should notice that the post text is added to the message window enclosed in a
block. This method allows you to quote with a reference to a person or whatever else you choose to put! For example to quote a piece of text Mr. Blobby wrote you would enter:

Code: Select all

 [quote="Mr. Blobby"]The text Mr. Blobby wrote would go here[/quote]
The resulting output will automatically add "Mr. Blobby wrote:" before the actual text. Remember you must include the quotation marks "" around the name you are quoting, they are not optional.
* The second method allows you to blindly quote something. To utilise this enclose the text in
tags. When you view the message it will simply show the text within a quotation block.

Top

Outputting code or fixed width data
If you want to output a piece of code or in fact anything that requires a fixed width, e.g. Courier type font you should enclose the text in

Code: Select all

 [code]
[/code] tags, e.g.

Code: Select all

[code]echo "This is some code";
[/code]

All formatting used within

Code: Select all

[code]
[/code] tags is retained when you later view it. PHP syntax highlighting can be enabled using

Code: Select all

[code=php]
[/code] and is recommended when posting PHP code samples as it improves readability.
Jeeps do not break
they present you with opportunities to upgrade!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest

Jeep-Fab.com : Disclaimer