Skip to content

Commit 69d8af4

Browse files
authored
Merge pull request #7 from JuliaDiscourse/banner
style the REPL banner
2 parents 5cdef73 + 9c86468 commit 69d8af4

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,57 @@ 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:
679+
/^ _ _ _\(_\)_ \| Documentation: https:\/\/docs.julialang.org$/,
680+
end: /$/,
681+
relevance: 10,
682+
},
683+
{
684+
className: "comment",
685+
begin: /^ \(_\) \| \(_\) \(_\) \|$/,
686+
end: /$/,
687+
relevance: 10,
688+
},
689+
{
690+
className: "comment",
691+
begin:
692+
/^ _ _ _\| \|_ __ _ \| Type "?" for help, "]?" for Pkg help.$/,
693+
end: /$/,
694+
relevance: 10,
695+
},
696+
{
697+
className: "comment",
698+
begin: /^ \| \| \| \| \| \| \|\/ _` \| \|$/,
699+
end: /$/,
700+
relevance: 10,
701+
},
702+
{
703+
className: "comment",
704+
begin: /^ \| \| \|_\| \| \| \| \(_\| \| \|/,
705+
end: /$/,
706+
relevance: 10,
707+
},
708+
{
709+
className: "comment",
710+
begin: /^ _\/ \|\\__'_\|_\|_\|\\__'_\| \|/,
711+
end: /$/,
712+
relevance: 10,
713+
},
714+
{
715+
className: "comment",
716+
begin: /^\|__\/ \|$/,
717+
end: /$/,
718+
relevance: 10,
719+
},
669720
],
670721
// jldoctest Markdown blocks are used in the Julia manual and package docs indicate
671722
// code snippets that should be verified when the documentation is built. They can be

0 commit comments

Comments
 (0)