News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Code-tags For Your Sample Code

Started by Visio Guy, May 26, 2008, 12:51:55 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Visio Guy

Hi Folks,

If you want to post code samples, it will format more nicely--and be easier to copy for other readers--if you wrap it in BBCode Code Tags

There doesn't seem to be a nice button on the formatting toolbar, but it is pretty easy: All you have to do is wrap these bracketed bits around your code:

[code]

  Debug.Print "Hello World"

[/code]


It'll look like this when you're done:



  Debug.Print "Hello World"



Edit: or hit the "#" button on the toolbar! Thanks Lars-Erik!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Lars-Erik

There is... just hit the # button.
Bottom row, 3d from the left

- Lars

Visio Guy

 :-\I gotta quit doing the forum so late at night...
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

KeithRuck

I just posted a forum question, and without realizing it, put one snippet in the code brackets, and the other in quote brackets.

Interestingly, the snippet in the quote bracket is much easier to read (the font is larger). I wonder if there is any way to set the code snippets to render at the same font size as the rest of the post? My eyes are too old to read 6pt font...

:)

Visio Guy

#4
I think I switched the code font-size before, but then there was a major upgrade to the forum software which might have whacked that change.

By the way, Ctrl + "+" and Ctrl + "-" zoom most browsers in and out these days, which is another nice trick. Ctrl + 0 gets you back to normal zoom.

Thanks for the reminder...

There, I think I've got it set to a bigger font:


10 PRINT "Big code font"
20 GOTO 10
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

jastronomy

loving the spaghetti code... I used to have a scientific graphical calculator many years back... I wrote a game in spaghetti code, that drew smileys for the correct answer to a table of 32 questions... pretty lame, but it made me smile when it finally worked (5 weeks after starting it)

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 248 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1123KB.
Tokens: post-login.
Cache hits: 13: 0.00125s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]