Sublime Forum

Powershell code-blocks are not highlighted in markdown files

#1

Given this text in the file test.md

start

```python
print("Hello World!")
```

```powershell
Write-Output 'Hello World!'
```

```javascript
console.log("Hello World!")
```

end

In sublime-text it looks like this:
2024-09-03%2023_04_10-Window

Both the python and the javascript code-blocks are syntax-highlighted, but the powershell isn’t. Am I doing something wrong here?

Sublime Text version: Stable channel Build 4180

0 Likes

#2

ST’s bundled Markdown syntax includes support for other bundled languages only as anything else would cause syntax tests to fail.

I suggest installing MarkdownEditing, which supports all sorts of known syntaxes and is designed as drop-in replacement for bundled Markdown.

2 Likes

#3

Installing MarkdownEditing worked! Thank you.

2024-09-04%2021_04_39-Window

1 Like