Skip to content

Commit 1e13ab9

Browse files
committed
style the REPL banner
1 parent 5cdef73 commit 1e13ab9

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

javascripts/discourse/api-initializers/theme-initializer.gjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,55 @@ function juliaRepl(hljs) {
666666
subLanguage: "julia",
667667
},
668668
},
669+
// Tag the banner entirely as a comment
670+
{
671+
className: 'comment',
672+
begin: /^ _$/,
673+
end: /$/,
674+
relevance: 10
675+
},
676+
{
677+
className: 'comment',
678+
begin: /^ _ _ _\(_\)_ \| Documentation: https:\/\/docs.julialang.org$/,
679+
end: /$/,
680+
relevance: 10
681+
},
682+
{
683+
className: 'comment',
684+
begin: /^ \(_\) \| \(_\) \(_\) \|$/,
685+
end: /$/,
686+
relevance: 10
687+
},
688+
{
689+
className: 'comment',
690+
begin: /^ _ _ _\| \|_ __ _ \| Type "?" for help, "]?" for Pkg help.$/,
691+
end: /$/,
692+
relevance: 10
693+
},
694+
{
695+
className: 'comment',
696+
begin: /^ \| \| \| \| \| \| \|\/ _` \| \|$/,
697+
end: /$/,
698+
relevance: 10
699+
},
700+
{
701+
className: 'comment',
702+
begin: /^ \| \| \|_\| \| \| \| \(_\| \| \|/,
703+
end: /$/,
704+
relevance: 10
705+
},
706+
{
707+
className: 'comment',
708+
begin: /^ _\/ \|\\__'_\|_\|_\|\\__'_\| \|/,
709+
end: /$/,
710+
relevance: 10
711+
},
712+
{
713+
className: 'comment',
714+
begin: /^\|__\/ \|$/,
715+
end: /$/,
716+
relevance: 10
717+
}
669718
],
670719
// jldoctest Markdown blocks are used in the Julia manual and package docs indicate
671720
// code snippets that should be verified when the documentation is built. They can be

0 commit comments

Comments
 (0)