Indentation in forum examples

Reply
Not applicable
Posts: 0

Indentation in forum examples

I replied to a message including code and the indentation was stripped out, most annoying.
I event tried a *; at the beginning of each line to protect the indentation and that didn't work either.
Are people not supposed to help with code examples?
Can the forum be updated to only remove trailing spaces?
SAS Employee
Posts: 174

Re: Indentation in forum examples

Posted in reply to deleted_user
Try specifying the code as preformatted text. PRE and /PRE (enclosed in square brackets) should do the trick.

-- David Kelley, SAS
Not applicable
Posts: 0

Re: Indentation in forum examples

Posted in reply to David_SAS
I see, it works, cool.

[PRE]
data colin;
set badger;
by itself;
run;
[/PRE]
SAS Employee
Posts: 27

Re: Indentation in forum examples

Posted in reply to deleted_user
Thanks for the suggestion. I've passed it along to the technical team responsible for maintaining these forums.

Dave
Ask a Question
Discussion stats
  • 3 replies
  • 484 views
  • 0 likes
  • 3 in conversation