aia Posted June 13, 2020 Posted June 13, 2020 It would be great to use the "Expand" feature with blocks of code in the same way as with quotes. Quote Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example
Afrodude Posted June 13, 2020 Posted June 13, 2020 (edited) On 6/13/2020 at 12:05 AM, Mr 13 said: It would be great to use the "Expand" feature with blocks of code in the same way as with quotes. Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Good idea. Also, what makes this future even better is having another button after "Expand" the quote/code named "Hide" to shrink it back. Edited June 14, 2020 by Afrodude
Ioannis D Posted June 13, 2020 Posted June 13, 2020 An alternative method that you can use, is to define the max height of the code block by adding the below code in to your custom.css pre.ipsCode{ max-height:500px; } Joel R and kmk 2
aia Posted June 24, 2020 Author Posted June 24, 2020 @Ioannis D, this is what I'm using since IPS 4.0.0 on my communities for both quotes and code blocks, but this topic is not about it. Since 4.5 finally has an "Expand" feature, it would be great to use it with code blocks instead of this CSS-based workaround which is not that convenient.
Recommended Posts