Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
483289a0
Commit
483289a0
authored
Dec 01, 2020
by
jboyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix improper code highlighting
parent
45a450aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
app/assets/javascripts/notebook/lib/highlight.js
app/assets/javascripts/notebook/lib/highlight.js
+1
-18
No files found.
app/assets/javascripts/notebook/lib/highlight.js
View file @
483289a0
import
Prism
from
'
prismjs
'
;
import
'
prismjs/components/prism-python
'
;
import
'
prismjs/plugins/custom-class/prism-custom-class
'
;
Prism
.
plugins
.
customClass
.
map
({
comment
:
'
c
'
,
error
:
'
err
'
,
operator
:
'
o
'
,
constant
:
'
kc
'
,
namespace
:
'
kn
'
,
keyword
:
'
k
'
,
string
:
'
s
'
,
number
:
'
m
'
,
'
attr-name
'
:
'
na
'
,
builtin
:
'
nb
'
,
entity
:
'
ni
'
,
function
:
'
nf
'
,
tag
:
'
nt
'
,
variable
:
'
nv
'
,
});
import
'
prismjs/themes/prism.css
'
;
export
default
Prism
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment