#lang scribble/doc
@(require "common.rkt")

@(tools-title "module-language-tools")

If the result of @racket[read-language] for a language is a function, 
DrRacket will query it to determine if there are any new toolbar
buttons to be used when editing files in this language (when
DrRacket's language is set to the Module language).

Specifically, DrRacket will pass @indexed-racket['drscheme:toolbar-buttons]
to the function and expect back a value matching this contract:
@racketblock[(listof (list/c string?
                             (is-a?/c bitmap%)
                             (-> (is-a?/c drracket:unit:frame<%>) any)))]
which is then used to create new toolbar buttons, one for each list in the
first. The string is the label on the button; the bitmap is the icon (it should be 16x16),
and the function is called when the button is clicked.

@(tools-include "module-language-tools")
