On this page:
render-syntax/  snip
render-syntax/  window
snip-class
render-syntax-focused-syntax-color-style-name
render-syntax-subtitle-color-style-name

19 Syntax Browser

 (require mrlib/syntax-browser) package: gui-lib

procedure

(render-syntax/snip stx)  (is-a?/c snip%)

  stx : syntax?
Constructs a snip% object that displays information about stx.

procedure

(render-syntax/window stx)  void?

  stx : syntax?
Uses render-syntax/snip’s result, together with a frame and editor-canvas to show stx.

The snipclass used by the result of render-syntax/snip.

value

render-syntax-focused-syntax-color-style-name : string?

The name of the style that controls the color of the focused portion of the syntax object that’s being displayed. See also render-syntax-subtitle-color-style-name.

Defaults to a style that’s derived from the basic style with the foreground color "forestgreen".

value

render-syntax-subtitle-color-style-name : string?

Like render-syntax-focused-syntax-color-style-name but for the subheadings when the syntax browser details are shown.

Defaults to a style that’s derived from the basic style with the foreground color "navy".