توسط این مد، Syntax Highlighter درون سیستم با این مد پیشرفته جایگزین شده و می توانید نوع نمایش کدها در زبان های مختلف را تعیین نمایید.
This is 100% compatible with the original code box and does not edit nor remove any of the default code.
By switching to GeSHi you gain a several new settings:
- Ability to parse outdated bbcodes (html, php, sql, xml)1.
- Allow your users to highlight lines within their code, which is great for debugging!
- Link to function / method names within the code. E.g. "echo" in PHP would link to http://php.net/echo.
- Ability to disable line numbers if the author wishes to do so.
- Change the CSS within the admin interface, however the default CSS matches up nicely with the original IPB theme.
- Bring attention to keywords within the languages by forcing case (upper or lower) on the keywords
There are numerous upgrades in the pipeline as well:
- Add in new languages available to the user within the Code box dialog in the rich text editor.
- A new toolbar which allows users to hide line numbers for any code box, open a "raw" version (plain text) of the code, print, etc.
- Include the ability to output what language is being shown.
This hook is open source and any contributor can include it with his or her themes and applications, or contribute via bug fixes / addition of features. Even though it is open source, I ask for contributors to include credit if used.
1 - It should be noted that there is an outstanding bug with IPB on this and currently does not render old bbcodes. Once IPB's bug is fixed, this feature can be enabled.