Go Down

Topic: bb codes (Read 935 times) previous topic - next topic

sterretje

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 ( ;) ).

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
Code: [Select]
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
[img]http://farm6.static.flickr.com/5126/5214773983_9e79d33b5f.jpg[/img] 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 ;)
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

septillion

#1
Nov 07, 2016, 10:28 am Last Edit: Nov 07, 2016, 10:28 am by septillion
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! :)
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

couka

Just disable quick reply and all is good! :)
+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
youtube.com/DieBastler1234
Don't send me technical questions via PM. They will be deleted unanswered.

OldSteve

#3
Nov 07, 2016, 11:00 am Last Edit: Nov 07, 2016, 11:03 am by OldSteve
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.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

septillion

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 ;)

@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 :D
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

sterretje

When I'm typing, I usually don't want to move my hand form keyboard to the mouse and click something :D Too much of a command line junkie, I suppose 8)
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

OldSteve

And if they are to lazy to click for the full editor they are to lazy to edit there profile first for sure :D
Very true, unfortunately. I just thought I'd mention it though, for those that are unaware that the option exists.


Quote from: sterretje
When I'm typing, I usually don't want to move my hand form keyboard to the mouse and click something :D 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.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

TomGeorge

Hi,
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.... :)
Everything runs on smoke, let the smoke out, it stops running....

dlloyd

#8
Nov 07, 2016, 03:01 pm Last Edit: Nov 07, 2016, 03:18 pm by dlloyd
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

OldSteve

#9
Nov 08, 2016, 02:26 am Last Edit: Nov 08, 2016, 10:47 am by OldSteve
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.)
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

sterretje

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.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up