Skip to content

Feature: Easier create example/exercise/texthint/codehint #307

@pimotte

Description

@pimotte

Currently, the editor buttons all provide relatively elementary operations. In practice, a teacher will create a worksheet consisting of examples and exercises, along with explanatory text and possible hints or "Technical details" sections (i.e. hint sections containing maintainance code).

We want some additional buttons create exercises, examples, texthints and code hints.

Depending on the language, the following snippets should be inserted after the node where the cursor is at the moment of clicking the button.

Create exercise (Rocq):

 ```coq
 Lemma exercise:
 Proof.
 ```
 <input-area>
 ```coq

 ```
 </input-area>
 ```coq
 Qed.
 ```

Create exercise (Lean):

::::multilean
```lean
Exercise "exercise"
  Given: 
  Assume: 
  Conclusion:
Proof:
```
:::input

```
:::
```lean
QED
```
::::

Create example (Rocq):

Example example: True.
Proof.

Qed.

Create example (Lean):

Example "example"
  Given: 
  Assume: 
  Conclusion: 
Proof:

QED

Create text hint (Rocq):

<hint title="💡 Hint">

</hint>

Create text hint (Lean)

:::hint "💡 Hint"

:::

Create code hint (Rocq):

<hint title="🛠️ Technical details">
```coq

```
</hint>

Create code hint (Lean):

:::hint "🛠️ Technical details"
```lean

```
:::

Metadata

Metadata

Assignees

Labels

requestRequest for a new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions