Page MenuHomeSealhub

JDD Component for displaying code snippets
Open, NormalPublic2 Points

Description

Use the code from T2990: JDD new argument type: Code and its children.

The component should consist of two arguments:

  • language (short text)
  • code (code)

The code should be rendered with code highlighting (using Pygments or something similar) when making the HTML output and it should have a "copy" button that copies the code to the clipboard.

The copy funcitonality should be done with Stimulus