How to Paste Script or Text in a Code Block

forum
faq

#1

How to Put Code (or Text) in a Forum Code Block

Just insert your text between the lines with the triple backquotes:

image

See Markdown for Code Blocks

To get syntax highlighting, then use the keyword in lower case for that language, like:
applescript
javascript
html
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

Request for a working example of remote trigger
Search dates and amounts
Need Help with Using KM Variables in JavaScript
How to address a "Collapsible Tab" in either Chrome or Safari?
Which Regular Expression's engine are you recommend for Keyboard Maestro?
Which Regular Expression's engine are you recommend for Keyboard Maestro?
Macro responds to "do script" if called by UUID but not by name
Comparing one variable to a list of others
Scrape Data From Page After Search
How to make a Ulysses-specific inline Markdown URL?
How Do I Convert Bookmarklet to KM Execute JavaScript?
How to split up clipboard/variable into multiple variables?
Tip: How Do I Get The Best Answer in the Shortest Time?
Beginner help: completing web form project
Copy a variable amount of text from a web page
Copy a variable amount of text from a web page
Applescript issue
Insert Airmail receiver's name
Insert Airmail receiver's name
Move files to the correct subfolders
Split Variable in two at "return"?
"#tab-item-6" what is this?
Copy link address (Chrome or Safari) (Newbie alert)
Help me overcome my fear/confusion of the Clipboard Features
How Do I Manipulate Windows in AppleScript?
How to split up clipboard/variable into multiple variables?
How to scrape a web page to input data into an Excel spreadsheet?