# SH Syntax highlighting doesn't work in reading mode for sh

**URL:** <https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283>\
**Category:** Bug graveyard\
**Tags:** repro, live-preview\
**Created:** [May 31, 2022, 5:02pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283 "2022-05-31T17:02:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![renanwillian](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@renanwillian](https://forum.obsidian.md/u/renanwillian)\
**Post date:** [May 31, 2022, 5:02pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283/1 "2022-05-31T17:02:12Z")

</div>

sh syntax highlighting only works in source mode:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/7/a/7afa8fa4b224ec5ec8ffe734eb01e2223584bd8d.png)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/1/d13328af0886da440cde4a70ea7ec21f0e5581f0.png)

### Steps to reproduce

Just create a note with this:

```sh
export PATH=/usr/java/jdk/bin:$PATH
ls -l
ln -s

```

### Expected result

The syntax highlighting should be the same for both source mode and reading mode.

### Actual result

The syntax highlighting is present in source mode but absent reading mode.

### Environment

- Operating system: Linux MINT

- Debug info:  
SYSTEM INFO:  
Obsidian version: v0.14.6  
Installer version: v0.13.31  
Operating system: #72~18.04.1-Ubuntu SMP Fri Jan 15 14:06:34 UTC 2021 5.4.0-64-generic  
Login status: not logged in  
Insider build toggle: off  
Live preview: off  
Legacy editor: off  
Base theme: dark  
Community theme: none  
Snippets enabled: 0  
Safe mode: on

RECOMMENDATIONS:  
none

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 31, 2022, 5:26pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283/2 "2022-05-31T17:26:22Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![lucasrla](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/dbc845/32.png) [@lucasrla](https://forum.obsidian.md/u/lucasrla)\
**Post date:** [October 30, 2022, 4:58pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283/4 "2022-10-30T16:58:34Z")

</div>

Any updates on this bug? As of 1.0.3 it’s still there.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 30, 2022, 5:41pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283/5 "2022-10-30T17:41:33Z")

</div>

No, the reader and editor use two different parsers. This won’t get fixed.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [December 5, 2022, 2:20pm UTC](https://forum.obsidian.md/t/sh-syntax-highlighting-doesnt-work-in-reading-mode-for-sh/38283/6 "2022-12-05T14:20:29Z")

</div>

Closed on December 5, 2022, 2:20pm UTC


