Jump to content

Featured Replies

Posted

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

 

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 by Afrodude

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;
}

code_block.png

  • 2 weeks later...
  • Author

@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.

Recently Browsing 0

  • No registered users viewing this page.