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

Add Visual Indent Option in `no_code` Layout

Open
#43 0 comments 0 reactions 1 assignee Claimed by @nelson-lojo View on GitHub
enhancement pl-element
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.