2007-03-15, 10:12 PM
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:
Two code boxes, the first one is a standard one, the second one is a GeShi code box:
![[Image: codefoldunfoldedix5.png]](https://camo.mybb.com/aeb4edc4918996be28b972c82cdd56bcfbaf4404/687474703a2f2f696d673431302e696d616765736861636b2e75732f696d673431302f393639372f636f6465666f6c64756e666f6c6465646978352e706e67)
Same as before but folded:
![[Image: codefoldfoldedkp5.png]](https://camo.mybb.com/55dd1d4a8b53114c849cf4a5104dcf15dbe457c9/687474703a2f2f696d6731392e696d616765736861636b2e75732f696d6731392f333336342f636f6465666f6c64666f6c6465646b70352e706e67)
Settings:
![[Image: codefoldsettingsuf4.png]](https://camo.mybb.com/e0582a25a2fae8e133d92f490837a8aebeaddb9f/687474703a2f2f696d673130332e696d616765736861636b2e75732f696d673130332f363133362f636f6465666f6c6473657474696e67737566342e706e67)
See it in action!
If you have any suggestions and/or feedback, I would really like to read it
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:
Same as before but folded:
Settings:
See it in action!
If you have any suggestions and/or feedback, I would really like to read it
