Visio Guy

Visio Discussions => Programming & Code => Topic started by: Visio Guy on May 26, 2008, 12:51:55 PM

Title: Code-tags For Your Sample Code
Post by: Visio Guy on May 26, 2008, 12:51:55 PM
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!
Title: Re: Code-tags For Your Sample Code
Post by: Lars-Erik on May 26, 2008, 12:57:52 PM
There is... just hit the # button.
Bottom row, 3d from the left

- Lars
Title: Re: Code-tags For Your Sample Code
Post by: Visio Guy on May 26, 2008, 09:05:08 PM
 :-\I gotta quit doing the forum so late at night...
Title: Re: Code-tags For Your Sample Code
Post by: KeithRuck on November 25, 2009, 10:43:17 PM
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...

:)
Title: Re: Code-tags For Your Sample Code
Post by: Visio Guy on November 26, 2009, 11:18:44 AM
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
Title: Re: Code-tags For Your Sample Code
Post by: jastronomy on October 28, 2010, 10:33:50 PM
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)