The discussion revolves around implementing new lines in the composer’s reply placeholder on Discourse. mbauman notes that the R language board uses a helpful example with a code fence in the placeholder but couldn’t replicate it using standard methods like or <br />. cocococosti suggests using a custom theme or a topic template, referencing a theme component for placeholder text. mbauman acknowledges the workaround but expresses a desire to avoid theme hacking, suggesting the issue could be recategorized as a feature request.
Apparently the board for the R language uses a composer placeholder that helpfully includes an example of a ``` code fence. This would also be a helpful hint for our language board, but I couldn’t figure out how they’re doing it. I tried putting literal newlines, \ns, and <br /> into the js.composer.reply_placeholder but none actually spat out a newline.
What’s the magic that I’m missing here? Are they using a custom theme for this? How can we stealbe inspired by this great idea for ourselves?
Ah, great pointers — thank you! Unfortunately the Topic Template Placeholder Text theme component suffers from the same limitation. Which makes sense — it looks to just be selectively override the very same js.composer.reply_placeholder setting on a per-category basis. Just using a topic template alone is a decent workaround, though, we’ll consider that.
Perhaps this could be recategorized as a feature request? I was hoping to avoid theme hacking.