Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 102

Slav
Apple Fan
Profile
Posts: 37
Reg: Sep 09, 2013
Toronto
370
12/25/15 10:21 AM (8 years ago)

[Solved] Linebreak into text area (questions) in Advanced quiz or other plugins

In a new app Advanced Quiz questions are long and sometimes include lettered options in the texts of questions. One line doesn't look nice with: "Question. (Choose two) a) Option 1 b) Option 2 c)Option 3...)", especially if it's really long. The plugin screenshot shows that it's obviously possible to start a new line: https://www.dropbox.com/s/i6dsxow2vr4czeu/Plugin%20screenshot.JPG?dl=0 I'd really appreciate any advice of how to do it
 
Slav
Apple Fan
Profile
Posts: 37
Reg: Sep 09, 2013
Toronto
370
like
12/25/15 11:29 AM (8 years ago)
Solved: \n does the trick. E.g. "Question. (Choose two) \na) Option 1 \nb) Option 2 \nc)Option 3..." - looks much better. Maybe somebody will need it one day
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/26/15 05:41 AM (8 years ago)
Yep. That is how I handle newlines.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
12/27/15 05:12 AM (8 years ago)
Important: when you use this trick via the CP (with any plugin), every time you change anything in the screen you have to re-type every backslash!
 
Slav
Apple Fan
Profile
Posts: 37
Reg: Sep 09, 2013
Toronto
370
like
12/27/15 07:43 AM (8 years ago)
I noticed this too. I usually enter a placeholder instead of question, all the answers and explanation, enter all this and then I click on the question in the list and make changes in the pop-up window. Otherwise backslashes disappear.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.