One of the downsides to using any of the text editors with Movable Type is that they can be a little too clever.
If you want to post some code samples you have to be very careful or else the engine will interpret and parse the code instead of simply displaying it.
The solution is to use an encoder of some kind to convert the characters into HTML entities that will display in a browser without being parsed.
Arvind pointed me at this old tutorial on the learningmovabletype site which is a good starting point.
It links to this really handy encoding utility that I will be using again and again I would say!
In order to use the encoding you will need to switch from the "Rich Text" editor to either "MarkDown" or "None" and copy and paste in the code you want to display.
The way I've been doing that is to write the entire post leaving markers where I want to put in the code and then going back and doing a simple copy and paste. Switching between the various editors would otherwise be a bit annoying and I'm naturally a bit lazy when it comes to my workflow
If you want to post some code samples you have to be very careful or else the engine will interpret and parse the code instead of simply displaying it.
The solution is to use an encoder of some kind to convert the characters into HTML entities that will display in a browser without being parsed.
Arvind pointed me at this old tutorial on the learningmovabletype site which is a good starting point.
It links to this really handy encoding utility that I will be using again and again I would say!
In order to use the encoding you will need to switch from the "Rich Text" editor to either "MarkDown" or "None" and copy and paste in the code you want to display.
The way I've been doing that is to write the entire post leaving markers where I want to put in the code and then going back and doing a simple copy and paste. Switching between the various editors would otherwise be a bit annoying and I'm naturally a bit lazy when it comes to my workflow

