8.16.0.4
scribble-rainbow-delimiters
Colorizing matched brackets of codes on HTML pages generated by Racket Scribble
This project’s code is initially splited from https://github.com/yanyingwang/rainbow-delimiters, which is a browser plugin built for a wider range use on diverse websites.
This Racket Package is especially built for working with the HTML pages generated by Scribble: The Racket Documentation Tool(or (part ("(lib frog/frog.scrbl)" "top"))) such as https://docs.racket-lang.org.
This generated HTML pages which you’re viewing right now has already included script/rainbow-delimiters*, you should already notice the highlight of brackets and you can also move your mouse to one of them for checking.
1 Example
Add script/rainbow-delimiters* to your scribble source file for its later generating HTML pages with adding in jquery and rainbow-delimiters js script files:
#lang scribble/manual @require[racket/base scribble-rainbow-delimiters] @script/rainbow-delimiters* @; add this line @racketblock[ (define test-list '(1 2 3)) (for ([i test-list]) (displayln i)) ]
2 API
value
value
Returns scribble style of the jquery-3.5.1 or rainbow-delimiters js src script.
value
value
Returns a scribble element of the jquery-3.5.1 or rainbow-delimiters js src script.
Returns a list whose elements are script/jquery-3.5.1 and script/rainbow-delimiters.