# Code folding in other languages specifically Julia

**URL:** <https://discourse.jupyter.org/t/code-folding-in-other-languages-specifically-julia/25748>\
**Category:** JupyterLab\
**Tags:** jupyterlab, how-to, help-wanted, notebook\
**Created:** [May 16, 2024, 11:49pm UTC](https://discourse.jupyter.org/t/code-folding-in-other-languages-specifically-julia/25748 "2024-05-16T23:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erny123](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/erny123/32/13419_2.png) [@erny123](https://discourse.jupyter.org/u/erny123)\
**Post date:** [May 16, 2024, 11:49pm UTC](https://discourse.jupyter.org/t/code-folding-in-other-languages-specifically-julia/25748/1 "2024-05-16T23:49:50Z")

</div>

Is there anyway to get code folding for any other languages other than python?  
Jupyterlab will code fold in notebook cells and text editor for python.  
But I haven’t been able to get it to work for Julia although it recognizes the Julia syntax.

---

<div class="post-metadata">

**Author:** ![krassowski](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/krassowski/32/1685_2.png) [@krassowski](https://discourse.jupyter.org/u/krassowski)\
**Post date:** [May 17, 2024, 9:55am UTC](https://discourse.jupyter.org/t/code-folding-in-other-languages-specifically-julia/25748/2 "2024-05-17T09:55:45Z")

</div>

The default Julia syntax highlighting mode for CodeMirror 6 is rather limited. In another issue ([JupyterLab 4 regression: Missing parenthesis when displaying markdown code blocks · Issue #16112 · jupyterlab/jupyterlab · GitHub](https://github.com/jupyterlab/jupyterlab/issues/16112)) I mentioned that we could explore using [GitHub - JuliaPluto/lang-julia: Julia language support for the CodeMirror code editor](https://github.com/JuliaPluto/lang-julia) instead as it seems a bit better. It is worth checking if it supports code folding, and whether we could contribute it back.

---

<div class="post-metadata">

**Author:** ![erny123](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/erny123/32/13419_2.png) [@erny123](https://discourse.jupyter.org/u/erny123)\
**Post date:** [May 17, 2024, 2:53pm UTC](https://discourse.jupyter.org/t/code-folding-in-other-languages-specifically-julia/25748/3 "2024-05-17T14:53:38Z")

</div>

Got it. Is there anyway to just enable code folding via indentation recognition? I feel like that would be the easiest way for languages other than python key word recognition
