Dumb question.. how do u format code to look good.
i want to post my code for people to see.. but when i do it looks like crap.
is there a way for this rich text format thing to work... it looks good in the body section when writing it out when rich text is enabled. but then i post it and it looks horrible.
heres an example... this is supposed to have abunch of line breaks in it.
macroScript KeyStones category:"ClaverTech" toolTip:"Keystones - Quick Select Key Objects" ( persistent global myObjs myObjsNames=#() rollout KeyStoneRollout "ClaverTech - Keystones" width:273 height:290 ( --button btnDone "Done" pos:[214,249] width:95 height:40 listBox lbxObjects "Key Objects" pos:[10,5] width:178 height:19 button btnSet "Set List" pos:[195,39] width:75 height:30 button btnAdd "Add Object" pos:[195,109] width:75 height:30 button btnSelected "Add Selected" pos:[195,149] width:75 height:30 button btnRemove "Remove Object" pos:[195,229] width:75 height:30 on KeyStoneRollout open do ( if myObjs!=undefined then ( myObjs=for o in myObjs where (not isDeleted o and o!=undefined) collect o myObjsNames=for o in myObjs collect o.name lbxObjects.items=myObjsNames ) else ( myObjs=#() ) )
Comments
omg thank u... i knew it had
omg thank u... i knew it had 'code' in it.. i just didnt realize u used the '<' instead of '['... i knew it was a dumb question THANK YOU! now i wont look so dumb when posting code.
Yeah, the "rich text editing"
Yeah, the "rich text editing" leaves a lot to be desired. However - I've tried to set it up so most of the time you don't even need it. Plain ol text links will turn into URL's automatically and code that's surrounded by code tags will turn into source code...
I've edited your post to be just plain text with code tags and it displayed a lot better.
Christopher Grant
Admin, ScriptSpot.com