ace-lab / ace-lab/pl-faded-parsons

Add Visual Indent Option in `no_code` Layout

Aperta
#43 0 commenti 0 reazioni 1 assegnatario Rivendicata da @nelson-lojo Vedi su GitHub
enhancement pl-element
Lingua principale
Python
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When using `no_code` layout, pre-text and post-text are often provided.

In order to make the indentation of the solution appear visually coherent, it would be convenient to provide a `visual-indent="n"` attribute on the element, that simply nudges the tray `n` character widths to the right relative to pretext.

### Visual Example

We want to emulate the experience of writing inline with the context, like so:
```ruby
# this is our parsons problem

describe GiftCard do # pre-text
context "#withdraw" do #
+--------------+
>>>>>>>>| solution box | # box with visual-indent="8"
+--------------+
end # post-text
end #
```

**not**
```ruby
describe GiftCard do
context "#withdraw" do
+--------------+
| solution box | # poorly-aligned, confusing, lame
+--------------+
end
end
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.