How to Put Scripts/Code (or Text) in a Forum Code Block
Just insert your text between the lines with the triple backquotes:
(backquote ` is the key just below ESC key.)
```language Your script or text here Use "text" as the language for text data Use "html" or "xml" for web pages or plist strings ```
To get syntax highlighting, then use the keyword in lower case for that language, like:
applescript
javascript
html
xml
text
These are just some of the more common examples. See the complete list of languages below.
Here is a macro that will paste the script on the clipboard into the forum in the proper format:
MACRO: KM Forum -- Paste Script Block
Languages Available for Code Blocks
apache
applescript
bash
coffeescript
cpp
cs
css
diff
handlebars
http
ini
java
javascript
json
makefile
markdown
nginx
objectivec
perl
php
python
ruby
sql
vbscript
xml