PDA

View Full Version : Code box in posts on MacOSX Hints site?


RacerOSX
05-07-2006, 04:43 AM
How do I get code (in this case Applescript) to show up in a code box on the main macosxhints site? I tried copying some html code from another post and it works if I save it as a text (html) file, but not if I paste it into the text box for the post. I used the "code" tags in square brackets, and it showed up in the orange color, but not in the box. It made the web page really, really wide. See for yourself.
:confused:
macosxhints.com/pid=74024 (http://www.macosxhints.com/comment.php?mode=display&sid=20060418221626696&title=Applescript+to+switch+between+name%2C+date+%26+size+columns+in+list+view&pid=74024)

hayne
05-07-2006, 05:18 AM
I think you are asking about the sort of "box" that you get on the forums site when you use the CODE tags. I don't think that is available on the main macosxhints site. The two sites are based on completely different software - the main site uses Geeklog while the forums site uses VBulletin.

RacerOSX
05-07-2006, 05:38 AM
I think you are asking about the sort of "box" that you get on the forums site when you use the CODE tags. I don't think that is available on the main macosxhints site. The two sites are based on completely different software - the main site uses Geeklog while the forums site uses VBulletin.

Take a look at this to see what I'm talking about!

macosxhints.com/story=20060418221626696 (http://www.macosxhints.com/article.php?story=20060418221626696)

hayne
05-07-2006, 06:45 AM
Take a look at this to see what I'm talking about!

macosxhints.com/story=20060418221626696 (http://www.macosxhints.com/article.php?story=20060418221626696)

I'm not sure, but I suspect that "box" might have been put in by hand (i.e. manually editing the HTML) by the site administrator. I don't think it is available (unfortunately) for code submitted in the comments.

Perhaps Rob (or Kirk) will step in here and let us know how it is done.

RacerOSX
05-07-2006, 08:30 AM
I'm not sure, but I suspect that "box" might have been put in by hand (i.e. manually editing the HTML) by the site administrator. I don't think it is available (unfortunately) for code submitted in the comments.

Perhaps Rob (or Kirk) will step in here and let us know how it is done.

Thanks, Hayne
I guess we'll have to wait and see

griffman
05-09-2006, 06:18 PM
That box is in HTML that's only available to the site admins -- I reserve its use for really wide code snippets that I can't make fit in any other way, yet I'd rather not just link to. I much prefer to have the code as part of the hint, but sometimes, it just doesn't work.

So, if you're submitting a hint, just use the square code brackets, and I'll take care of any editing to put it in the box, if necessary.

-rob.