Enabled scribble toolbar

Wrapped `scribble-base-info` instead of `scribble-base-reader-info` for the reader `get-info` function. This version of the info function tells DrRacket to display the scribble toolbar.
This commit is contained in:
dented42 2025-03-16 21:11:18 -06:00 committed by GitHub
parent 24fd9ca7ca
commit 9ba5507588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,12 +12,12 @@ hyper-literate/lang
#:info (wrapped-scribble-base-reader-info)
(require "meta-first-line.rkt"
(only-in scribble/base/reader
scribble-base-reader-info
scribble-base-info
scribble-base-language-info)
"first-line-utils.rkt")
(define orig-scribble-base-reader-info
(scribble-base-reader-info))
(define orig-scribble-base-info
(scribble-base-info))
(require syntax-color/scribble-lexer
syntax-color/racket-lexer
@ -84,4 +84,4 @@ hyper-literate/lang
[else
(read/at-exp in offset x-mode)]))]
[else
(orig-scribble-base-reader-info key defval default)])))
(orig-scribble-base-info key defval default)])))