Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

When a text is selected, clicking on quote should quote the entire text, not just add a single > at the beginning of the selected text.

+2
−0

Feature request: When a text is selected, clicking on quote should quote the entire text, not just add a single > at the beginning of the selected text.

Image_alt_text

History

0 comment threads

1 answer

+2
−0

Make button quote every line in a selection

I believe this can be achieved by changing the behaviour of the button to insert >[1] at the beginning of every line in the selection, rather than just the first. The rendered post will still have behaviour consistent with non-quoted text for both single and double newlines.

To demonstrate, here is some raw text and its rendered result, including both single and double newlines, in plain and quoted form (notice that in both cases a single newline is rendered as a space, and a double newline is rendered as a new paragraph, as expected):

Raw text

Line one
Line two

Line three

>Line one
>Line two
>
>Line three

Rendered result

Line one Line two

Line three

Line one Line two

Line three

Include empty lines

It is important that empty (blank) lines also have > inserted, otherwise the quote will be split into several smaller quote blocks when rendered. Here's an example showing the results with and without > on blank lines:

Raw text

>Line one
>Line two
>
>Line three

>Line one
>Line two

>Line three

Rendered result

Line one Line two

Line three

Line one Line two

Line three


  1. Currently there is an additional space inserted before and after the greater than sign ( > is inserted rather than >) so a decision may be needed on whether to keep either or both of those spaces, but the principle is the same either way. The rendered post looks identical regardless of whether spaces are used. ↩︎

History

0 comment threads

Sign up to answer this question »