رفتن به مطلب
  • :excl2: در صورت مشکل در دریافت فایل و گیر کردن روی ۹۹ درصد، لطفا از طریق خودِ مرورگر، فایل ها را دریافت نمایید.

1 تصویر

درباره این فایل

توسط این مد، Syntax Highlighter درون سیستم با این مد پیشرفته جایگزین شده و می توانید نوع نمایش کدها در زبان های مختلف را تعیین نمایید.

By popular request, the GeSHi drop-in replacement allows for you, the forum admin, to take control of what code highlighters are used on your forum. This replaces the current highlighter (prettify) with a popular alternative and very powerful GeSHi. GeSHi is a server-side highlighter, meaning that your users will not have to wait for the Javascript to load in order to see "pretty" code. This is really hand for mobile users.

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:

  1. Ability to parse outdated bbcodes (html, php, sql, xml)1.
  2. Allow your users to highlight lines within their code, which is great for debugging!
  3. Link to function / method names within the code. E.g. "echo" in PHP would link to http://php.net/echo.
  4. Ability to disable line numbers if the author wishes to do so.
  5. Change the CSS within the admin interface, however the default CSS matches up nicely with the original IPB theme.
  6. 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. smile.png

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.


×
×
  • اضافه کردن...

اطلاعات مهم

ما مجبور شدیم تا از کوکی ها و فناوری های مشابه برای اجرای این وب سایت استفاده کنیم تا بتوانیم تجربه بهتری در زمان استفاده از سایت برای شما ایجاد نماییم. سیاست حریم خصوصی.