Just today I found out that I already had a Draft post from last summer about easily posting code-samples in MovableType using Brad Choate’s MTMacro…
Use the following Macro
<MTMacroContent encode_html="1">
then make sure your text-formatting processor is set to “none” for the entry (you need some extra BR’s then) and then just write
your program code
4-indented
fixed space characterset etc…
to paste your code…
Comments
Posting Code Samples in MT
moving files in asp
mvfile Move file mvfile( FileName, Destination )
Public Function mvfile( xVar, yVar )
Set Sys = Server.CreateObject( "Scripting.FileSystemObject" )
If Sys.FileExists( xVar ) Then
Sys.MoveFile xVar, yVar
msg = true
Else
msg = false
End If
Set Sys = Nothing
mvfile = msg
End Function