Skip to content

Editable snippets for non-rust languages #2088

Open
@bowbahdoe

Description

@bowbahdoe

Question

Hi all,

I am writing a book at http://javabook.net and I want to give users the same abilities with inline Java code as exists for rust code.

There are gonna be issues with that, I am sure, but the components I need are

  • A potentially editable text section
  • A run button
  • For that run button to call some api to run code

Adding this to my .toml doesn't seem to suffice

[output.html.playground]
editable = true

Which I'm not shocked by, but I would appreciate any guidance you might have.

Version

mdbook v0.4.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ACEArea: ACE EditorA-PlaygroundArea: PlaygroundC-questionCategory: A question on how to do something

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions