How to: Post code snippets

You can post code snippets by using a bracketed code tag either [] or <>. However, due to how the code formatting works it cannot be used in conjunction with the ScriptSpot rich-text editor.

So, to post code I'll use the [ code ] tag to start the highlighter and the [ /code ] tag to end it (spaces added so it would display tag - don't use spaces).

macroScript RenameThem category:"HowTo"
(
 rollout rename_rollout "Enter New Base Name"
 (
  edittext base_name ""
  button rename_them "RENAME SELECTED OBJECTS..."
  on rename_them pressed do
  (
   if base_name.text != "" do
    for i in selection do i.name = uniquename base_name.text
  )--end on
 )--end rollout
createDialog rename_rollout 250 50
)

Or you can use < code > and < /code > tags...

macroScript RenameThem category:"HowTo"
(
 rollout rename_rollout "Enter New Base Name"
 (
  edittext base_name ""
  button rename_them "RENAME SELECTED OBJECTS..."
  on rename_them pressed do
  (
   if base_name.text != "" do
    for i in selection do i.name = uniquename base_name.text
  )--end on
 )--end rollout
createDialog rename_rollout 250 50
)