applescript: enable syntax highlighting (#238)

This commit is contained in:
Rico Sta. Cruz 2018-03-19 12:09:42 +08:00
parent 2d4fcfc80c
commit 65dee86302
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 10 additions and 9 deletions

View File

@ -2,29 +2,30 @@
title: AppleScript title: AppleScript
updated: 2018-03-17 updated: 2018-03-17
layout: 2017/sheet layout: 2017/sheet
prism_languages: [applescript]
--- ---
### Running ### Running
``` ```applescript
osascript -e "..." osascript -e "..."
``` ```
``` ```applescript
display notification "X" with title "Y" display notification "X" with title "Y"
``` ```
### Comments ### Comments
``` ```applescript
-- This is a single line comment -- This is a single line comment
``` ```
``` ```applescript
# This is another single line comment # This is another single line comment
``` ```
``` ```applescript
(* (*
This is This is
a multi a multi
@ -34,24 +35,24 @@ line comment
### Say ### Say
``` ```applescript
-- default voice -- default voice
say "Hi I am a Mac" say "Hi I am a Mac"
``` ```
``` ```applescript
-- specified voice -- specified voice
say "Hi I am a Mac" using "Zarvox" say "Hi I am a Mac" using "Zarvox"
``` ```
### Beep ### Beep
``` ```applescript
-- beep once -- beep once
beep beep
``` ```
``` ```applescript
-- beep 10 times -- beep 10 times
beep 10 beep 10
``` ```