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

Add Visual Indent Option in `no_code` Layout

Đang mở
#43 0 bình luận 0 reaction 1 người được giao Được @nelson-lojo nhận Xem trên GitHub
enhancement pl-element
Ngôn ngữ chính
Python
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.