What is the recommended way to typeset algorithms?
For example, I have a question about an algorithm related to automata theory, and I would like to render the algorithm in my question.
In Latex I would use the algorithmic
package and then get on with STATE
and WHILE
, etc. This does not seem to work here however, so is it recommended that I format the algorithm in html, with a numbered, ordered list and the individual details in jsmath/latex or is there some other tacitly agreed upon protocol?