Skip to content

AlexKnauth/scribble-code-examples

Repository files navigation

scribble-code-examples

A scribble examples form that works for non-s-expression languages

Documentation: https://docs.racket-lang.org/scribble-code-examples/index.html

This repository contains two packages:

  • scribble-code-examples-lib, contains the scribble-code-examples module but no docs or tests
  • scribble-code-examples, contains the documentation and tests
(require scribble-code-examples)

In a Scribble Documentation file, writing this:

@code-examples[#:lang "at-exp racket" #:context #'here]|{
(+ 1 2)
@+[1 3]
}|

Produces output that shows a Repl interaction like this:

> (+ 1 2)
3
> @+[1 3]
4

About

A scribble examples form that works for non-s-expression languages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages