MyBB Community Forums

Full Version: Code Folding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This small plugin adds the well known +/- image at the upper right corner of any code tag.

Using the image, users can easily collapse/expand a code tag, so no more endless scrolling when someone pasted a long code snippet.

Features:
  • Can be (de-)activated using forum settings
  • Default collapse state can be changed (collapsed/expanded)
  • Works together with other plugins that use the [code] tag such as the GeShi plugin by CrazyCat

Two code boxes, the first one is a standard one, the second one is a GeShi code box:
[Image: codefoldunfoldedix5.png]

Same as before but folded:
[Image: codefoldfoldedkp5.png]

Settings:
[Image: codefoldsettingsuf4.png]

See it in action!

If you have any suggestions and/or feedback, I would really like to read it Wink
Great idea!
I'll try it soon.