bb codes

I don't know if this exists somewhere on the forum; I also have no idea if this is the correct place to post this ( :wink: ).

We often see posts containing code without code tags, hyperlinks that are not clickable etc. Most of this can be done using the 'advanced' editor but except for opening posts, most people seem to use the 'quick reply' or 'quote option' and hence hardly ever see the 'advanced' editor.

This is an attempt to have some common bb codes in a central place as reference.

code tags
[code]your code here[/code] gives

your code here

hyperlinks
[url=http://forum.arduino.cc/index.php]arduino forum index[/url] gives arduino forum index

images; note that the below image is not my image
![](upload://71beofreOIN8l0rAlvKhjCJb13k.jpeg) gives

Sometimes you want to draw attention to a specific part in the text

bold
[b]bold text[/b] gives bold text

italic
[i]italic text[/i] gives italic text

underline
[u]underlined text[/u] gives underlined text

color
[color=red]red text[/color] gives red text

Sometimes one wants to correct a (small) part of text in a previous post after a comment made in another reply. To keep the original more or less intact so the other of the comment does not look like an idiot with a misplaced comment, one can use
strikethrough
[s]red text[/s] gives red text

And lastly how to prevent the forum software from parsing bb codes while not using the code tags
nobbc
[nobbc]pinMode(pinArray[i], OUTPUT);[/nobbc] results in pinMode(pinArray[i], OUTPUT);

I case you did not know, bb codes can be nested to e.g. create bold green.

There are a few more, but those are the ones that I often use. Please feel free to add :wink:

Maybe mention the link without name?

[url]http://www.nxp.com/documents/data_sheet/1N4148_1N4448.pdf[/url]

Btw, the forum admin can solve this problem very very easy! Just disable quick reply and all is good! :slight_smile:

septillion:
Just disable quick reply and all is good! :slight_smile:

+1 for that. Whenever I begin writing into the quick reply box, I end up C&P-ing it into the full reply.

lg, couka

It is possible to enable the full toolbar in the "Quick Reply" text box. This is how my "Quick reply" text box looks (3/4 size if you right-click and "View Image" or similar):-

To enable it, in profile settings click on "Forum Settings" >Edit, then hover the mouse over "Settings" and choose "Look and Layout".
Finally, check the box next to "Use full editor in Quick Reply".

(It would be good if the site had this item checked by default, in my opinion.)

Unfortunately, this does not also show the "Attachments and other options" link.

couka:
Whenever I begin writing into the quick reply box, I end up C&P-ing it into the full reply.

No need to C&P, just hit preview :wink:

@OldSteve, yeah, the problem is it's not enabled by default. Us old dogs know how to write the BBcodes but it's the newbies who mess it up. And if they are to lazy to click for the full editor they are to lazy to edit there profile first for sure :smiley:

When I'm typing, I usually don't want to move my hand form keyboard to the mouse and click something :smiley: Too much of a command line junkie, I suppose 8)

septillion:
And if they are to lazy to click for the full editor they are to lazy to edit there profile first for sure :smiley:

Very true, unfortunately. I just thought I'd mention it though, for those that are unaware that the option exists.

sterretje:
When I'm typing, I usually don't want to move my hand form keyboard to the mouse and click something :smiley: Too much of a command line junkie, I suppose 8)]

I love my mouse - don't mind clicking buttons etc at all. Despite that, I still often manually add tags.
And thanks for starting this thread. It would be nice to see it made a "sticky", so that it doesn't get buried and lost.

I still firmly believe that newcomers shouldn't be allowed to post at all until they've read the "How to use this forum" threads, but I'm not sure how that could be accomplished, if at all.

Hi,

OldSteve:
Very true, unfortunately. I just thought I'd mention it though, for those that are unaware that the option exists.

I love my mouse - don't mind clicking buttons etc at all. Despite that, I still often manually add tags.
And thanks for starting this thread. It would be nice to see it made a "sticky", so that it doesn't get buried and lost.

I still firmly believe that newcomers shouldn't be allowed to post at all until they've read the "How to use this forum" threads, but I'm not sure how that could be accomplished, if at all.

Good idea.
Tom.... :slight_smile:

Often its desireable to scale the image (width, height or even aspect ratio) for clarity or to preserve screen space. This can be done by changing the pixel settings (works up to about 500).

[img width=150]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img]

[img height=150]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img]

[img width=300 height=100]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img]

[img width=100 height=300]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img]

Make an image clickable by wrapping the url tag around the image code:

[url=http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg][img width=100]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img][/url]

<--- click me

Further to dlloyd's image suggestions, to place an image inline using either manual [img][/img] tags or the "Insert an image" button, the image must be hosted on a website.

That website can be this site, by first attaching the image to your post, then copying the image URL into [img][/img] tags using either of the above methods.

First click the "Reply" button, (not "Quick Reply"), then click on the "Attachments and other options" link.
Browse to and attach the image, then click "Post".

Next, at the bottom of the new post, right-click on the image filename link and copy it, then edit the post and paste the URL between [img][/img] tags.
(To edit the post, at the bottom right-hand corner hover the mouse over "More" and select "Modify", which will open the "Modify Message" window.)

Thanks people for the feedback. I will contact the moderators to see if they are prepared to make it a sticky; if so, I will consolidate and start a new thread, else I will leave it as is.