Skip to content

code 3.0.1

Install from the command line:
Learn more about npm packages
$ npm install @webwriter-app/code@3.0.1
Install via package.json:
"@webwriter-app/code": "3.0.1"

About this version

Code Widget

The Code Widget enables interactive code exercises directly in the browser. Users can effortlessly write, execute, and explore code in multiple programming languages, including:

  • JavaScript or TypeScript
  • HTML
  • Python (powered by Pyodide)
  • Java (powered by TeaVM)
  • WebAssembly Text Format (WAT)

Features

  • Intuitive Editor: Based on CodeMirror, offering syntax highlighting and optional autocompletion for a smoother coding experience.
  • Line Locking: Allows instructors to lock specific lines, creating read-only templates to guide students effectively.
  • Rich Output Display: Outputs appear neatly below each code cell, with JavaScript execution featuring a fully interactive console inspector.
  • 100% Client-Side Execution: Everything executes locally within the browser, ensuring complete offline capability and no reliance on servers.

Development

To set up the development environment, clone the repository and execute the following commands:

npm install
npm run dev # runs @webwriter/build dev

Finally, import the code directory into WebWriter to begin.

Details


Assets

  • code-3.0.1.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all