{"size": 2575, "ext": "scrbl", "max_stars_repo_path": "scribblings/scribble-rainbow-delimiters.scrbl", "max_stars_repo_name": "yanyingwang/scribble-rainbow-delimiters", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scribblings/scribble-rainbow-delimiters.scrbl", "max_issues_repo_name": "yanyingwang/scribble-rainbow-delimiters", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scribblings/scribble-rainbow-delimiters.scrbl", "max_forks_repo_name": "yanyingwang/scribble-rainbow-delimiters", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.1875, "max_line_length": 166, "alphanum_fraction": 0.7266019417}
#lang scribble/manual
@require[@for-label[racket/base
                    scribble/core
                    scribble-rainbow-delimiters]
         scribble/eval
         scribble/core
         scribble/html-properties
         scribble-rainbow-delimiters]

@(define the-eval
         (make-eval-factory '(scribble-rainbow-delimiters)))

@(define demonstration-img
   (elem
    #:style
    (style #f
           (list (alt-tag "img")
                 (attributes
                  '((src . "https://raw.githubusercontent.com/yanyingwang/scribble-rainbow-delimiters/master/screenshot/docs-racket-lang-org.gif")))))))

@script/rainbow-delimiters*

@title{scribble-rainbow-delimiters}
@author[(author+email "Yanying Wang" "yanyingwang1@gmail.com")]

@defmodule[scribble-rainbow-delimiters]
@bold{Colorizing matched brackets of codes on HTML pages generated by Racket Scribble}
@itemlist[
@item{This project's code is initially splited from @url{https://github.com/yanyingwang/rainbow-delimiters},
which is a browser plugin built for a wider range use on diverse websites.}

@item{This Racket Package is especially built for working with the HTML pages
generated by @other-doc['(lib "scribblings/scribble/scribble.scrbl")](or @other-doc['(lib "frog/frog.scrbl")])
such as @url{https://docs.racket-lang.org}.}

@item{This generated HTML pages which you're viewing right now has already included @racket[script/rainbow-delimiters*],
you should already notice the highlight of brackets and you can also move your mouse to one of them for checking.}
]


@section{Example}
Add @racket[script/rainbow-delimiters*] to your scribble source file for its later generating HTML pages with adding in jquery and rainbow-delimiters js script files:
@codeblock|{
#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))
]
}|


@section{API}
@deftogether[(
@defthing[jquery-3.5.1 style?]
@defthing[rainbow-delimiters style?]
)]{
Returns scribble style of the jquery-3.5.1 or rainbow-delimiters js src script.
}

@deftogether[(
@defthing[script/jquery-3.5.1 element?]
@defthing[script/rainbow-delimiters element?]

)]{
Returns a scribble element of the jquery-3.5.1 or rainbow-delimiters js src script.
}

@defthing[script/rainbow-delimiters* (list script/jquery-3.5.1 script/rainbow-delimiters)]{
Returns a list whose elements are @racket[script/jquery-3.5.1] and @racket[script/rainbow-delimiters].
}

@section{Demonstration}
@demonstration-img