According to
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md#code-and-syntax-highlighting
:

GitLab uses the Rouge Ruby library for syntax highlighting. For a
list of supported languages visit the Rouge website.


Rouge's lexer tag for shell session is "shell_session".  (See
https://github.com/jneen/rouge/blob/master/lib/rouge/lexers/shell_session.rb
)

So I tried it on gitlab.com and the following got sensible syntax
highlighting:

```shell_session
$ date
Sat, Feb 25, 2017 12:02:44 PM

$
```

Hope this helps!

Best,
-at

-- 
Need training on GitLab CI?  Email train...@verticalsysadmin.com.

>
>
> On Feb 24, 2017 10:40 AM, "acodispo" <acodi...@gmail.com> wrote:
>
>> Rouge has a syntax called "Shell Session", but I can't seem to make it
>> work on Gitlab.
>>
>> I've tried:
>>
>> ```shell session
>> $ echo "test"
>> test
>> ```
>>
>>
>> ```Shell Session
>> $ echo "test"
>> test
>> ```
>>
>>
>> ```shellsession
>> $ echo "test"
>> test
>> ```
>>
>>
>> ```ShellSession
>> $ echo "test"
>> test
>> ```
>>
>> Any thoughts?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GitLab" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to gitlabhq+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/gitlabhq/472734f2-b062-4de1-a9f8-14c0fc83d6f8%40googlegroups.com
>> <https://groups.google.com/d/msgid/gitlabhq/472734f2-b062-4de1-a9f8-14c0fc83d6f8%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
ᐧ

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CANNWuVUhNSoq0WBVRhhjCs9cNuXfjZ5%3Di%2Bc67oSVOq9oBSxUfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to