julia-repl.js 862 B

1234567891011121314151617181920212223
  1. module.exports = function(hljs) {
  2. return {
  3. contains: [
  4. {
  5. className: 'meta',
  6. begin: /^julia>/,
  7. relevance: 10,
  8. starts: {
  9. // end the highlighting if we are on a new line and the line does not have at
  10. // least six spaces in the beginning
  11. end: /^(?![ ]{6})/,
  12. subLanguage: 'julia'
  13. },
  14. // jldoctest Markdown blocks are used in the Julia manual and package docs indicate
  15. // code snippets that should be verified when the documentation is built. They can be
  16. // either REPL-like or script-like, but are usually REPL-like and therefore we apply
  17. // julia-repl highlighting to them. More information can be found in Documenter's
  18. // manual: https://juliadocs.github.io/Documenter.jl/latest/man/doctests.html
  19. aliases: ['jldoctest']
  20. }
  21. ]
  22. }
  23. };