# AppleScript 围栏代码块在 1.5.x 中不再工作

**URL:** https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585
**Category:** Support
**Created:** [2016年四月15日 01:24 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585 "2016-04-15T01:24:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)
#### Post date: [2016年四月15日 01:24 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585/1 "2016-04-15T01:24:04Z")

</div>

After upgrading from 1.4.6 top 1.5.1, my AppleScript Fenced Code Blocks no longer display correctly:

```applescript
tell application "Safari"
	if it is running then
	end if
end tell

```

AppleScript language is turned on for highlighting, and this used to display correctly, but now displays like a mangled mess:

![](https://global.discourse-cdn.com/meta/original/3X/5/e/5effddc70fc5320e4dd8fc5865a42a3e6d68e873.png)

Hopefully there is some switch or setting that has been messed up or not set automatically that I can correct this, otherwise large chunks of my site now display significantly differently from previously.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年四月15日 01:29 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585/2 "2016-04-15T01:29:12Z")

</div>

Have you tried using 3 backticks to close the code block instead of 4?

```applescript
tell application "Safari"
	if it is running then
	end if
end tell

```

---

<div class="post-metadata">

### Author: ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)
#### Post date: [2016年四月15日 01:30 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585/3 "2016-04-15T01:30:22Z")

</div>

Thanks. Stupid error on my part - had me worried though.

I don’t suppose there is any way to search for other occurrences of four backticks?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年四月15日 01:32 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585/4 "2016-04-15T01:32:57Z")

</div>

You can use [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin for that

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:45 UTC](https://meta.discourse.org/t/applescript-fenced-code-blocks-no-longer-working-in-1-5-x/42585/5 "2024-06-08T12:45:45Z")

</div>

此主题已在 2976 天后自动关闭。不再允许回复。
