# PSA: Formatting REPL snippets on Stack Overflow

**URL:** <https://discourse.julialang.org/t/psa-formatting-repl-snippets-on-stack-overflow/48181>\
**Category:** Community\
**Tags:** psa, stackoverflow\
**Created:** [October 11, 2020, 8:39pm UTC](https://discourse.julialang.org/t/psa-formatting-repl-snippets-on-stack-overflow/48181 "2020-10-11T20:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [October 11, 2020, 8:39pm UTC](https://discourse.julialang.org/t/psa-formatting-repl-snippets-on-stack-overflow/48181/1 "2020-10-11T20:39:47Z")

</div>

Stack Overflow recently changed their syntax highlighter from Google Prettify to highlight.js:

> <https://meta.stackexchange.com/questions/353983/goodbye-prettify-hello-highlight-js-swapping-out-our-syntax-highlighter>

I’ve noticed that now snippets of code from the Julia REPL often get highlighted funny, like this:

 ![Screen Shot 2020-10-11 at 3.26.43 PM](https://global.discourse-cdn.com/julialang/original/3X/a/a/aa8ec3cb487df3d621775657da8cae3daefabc86.png)

Here you can see that almost everything is green, except for some of the numbers which are orange/brown. (However, note that normal code chunks that are not entered at the `julia>` prompt are highlighted reasonably well.)

There’s an easy fix for this problem. After the initial three backticks for a code block with a REPL snippet, use the language tag `lang-none`, like this:

````plaintext
    ```lang-none
        julia> 1 + 1
        2
    ```

````
