Skip to main content

The PreTeXt Guide

Subsection 44.4.5 HTML ActiveCode Programming Window

The
/publication/html/calculator
element has the following attribute:
  • @activecode: used to control if an ActiveCode window is available on every page, and if so, which language it undestands. Possible values are:
    • python (Python)
    • javascript (JavaScript)
    • html (HTML)
    • sql (SQL)
    • c (C, Runestone server only)
    • cpp (C++, Runestone server only)
    • java (Java, Runestone server only)
    • python3 (Python 3, Runestone server only)
    • octave (Octave, Runestone server only)
    • none
For a build hosted at a Runestone server, python is the default. For an HTML build hosted elsewhere, none is the default. See Subsection 29.1.3 for more.