Sending Program Source Code in a message
Sending Program Source Code in a message:
Of course you can type a message in plain text in MM's editor, but you should always remember that MM's editor is an HTML editor. You can create great effects using HTML tags, however you cannot write HTML tags themselves in a message, because MM will process these tags. Also sending a script in an MM message is not possible, because that script will try to RUN when viewed in MM's browser and most likely this will cause errors.
Programmers are used to embedding program examples in code and /code delimiters. Example:
FOR X = 1 to 4
PRINT "Hello World!"
This code is not easy to copy from a message. With Mokum Mail, you can hi-light a section and select the 'CODE' option located in the 'List' button.
MM will embed the text in code ... /code delimiters. When you view the message in the browser, MM turns the code and /code delimiters into TEXTAREA ... /TEXTAREA tags. It will look like this:
When you right-click on this list (in MM) you can click ' Select all ' and ' Copy ' and finally paste the code in a plain text editor like Notepad.
The same can be done for HTML code. When a HTML script is placed in TEXTAREA and /TEXTAREA tags, it will not be processed. Instead, it will show as plain text. Here you see an example:
... and here you see Linda's script in action...