Skip to content

Wiki AsciiDoc - no syntax highlighting

Summary

Code [source,language] isn't highlighting source code.

Steps to reproduce

  • create new page in wiki (AsciiDoc format)
  • paste some code in correct tags, e.g.
[[app-listing]]
[source,ruby]
.app.rb
----
require 'sinatra'

get '/hi' do
	"Hello World!"
	end
----

or

[[app-listing]]
[source,c++]
.class.cpp
----
#include <stdio.h>

for (int i=0;i<5;i++){
	std::cout<<"*"<<std::endl;
}
----
  • save and display page

What is the current bug behavior?

Syntax is not highlighted

now

What is the expected correct behavior?

Hightlight syntax.

Output of checks

This bug happens on GitLab.com

/label ~bug

Edited by Damian Mroziński