هذه الإضافة لم يتم تحديثها وتجربتها لأكثر من 3 إصدارات ووردبريس رئيسية. قد لا تكون خاضعة للصيانة أو تقدم الدعم والمساعدة بالوقت الحالي وقد تكون بها مشاكل في التوافق عند إستخدامها مع إصدارات حديثة من ووردبريس.

WordPress Rainbow Hilite

الوصف

“WordPress Rainbow Hilite” is no longer maintained. If you are interested in taking over the plugin, please leave a notice in the [github issues](https://github.com/mcguffin/wp-rainbow-hilite/issues).

If you like to use

Code syntax Highlighting. Documentation can be found here.

Features:

  • Highlighted code can be copy-pasted directly out of the site. No “view raw” button needed.
  • User friendly TinyMCE integration.
  • Many programming languages supported.

Includes rainbow.js a syntax highlighting script written by Craig Campbell.
Line numbering through rainbow.linenumbers by Ron Valstar.

Currently supported languages by Rainbow are

  • C
  • C#
  • Coffeescript
  • CSS
  • D
  • Go
  • Haskell
  • HTML
  • Java
  • Javascript
  • Lua
  • PHP
  • Python
  • R
  • Ruby
  • Scheme
  • Shell
  • Smalltalk

There are some Hooks implemented allowing you to load your own language modules. Details here.

Latest files on GitHub.

Plugin API

The plugin offers some filters to allow themes and other plugins to hook in.

See GitHub-Repo for details.

لقطات الشاشة

  • Visual Editor
  • Code properties dialog
  • WordPress Settings Writing
  • Highlighted Code

التنصيب

Follow the standard WordPress plugin installation procedere.

الأسئلة المتكررّة

I found a bug. Where should I post it?

Depends. If you can break it down to the JavaScript core it would be best placed in the Rainbow Repository (which is not mine).

Everything else can either go into the Support forum, or in the WP-Rainbow Repo.

I’d like to suggest a feature. Where should I post it?

I personally prefer GitHub. The plugin code is here: GitHub
(See above as well.)

I want to use the latest files. How can I do this?

Use the GitHub Repo rather than the WordPress Plugin. Do as follows:
1. If you haven’t done so: Install git
2. in the console cd into Your ‘wp-content/plugins’ directory
3. type ‘git clone git@github.com:mcguffin/wp-rainbow-hilite.git’
4. If you want to update to the latest files (be careful, might be untested on Your WP-Version) type ‘git pull’.

I found a bug and fixed it. How can I let You know?

Either post it on the GitHub-repo or—if you cloned the repository—send me a pull request.

المراجعات

3 سبتمبر، 2016
As developer I need to post code snippets from time to time and this plugin helps me to highlight the code nicely. Without a large overhead this plugin only enqueues style and js, which is nice to reduce the load. Thx 🙂
إقرأ جميع المراجعات 5

المساهمون والمطوّرون

“WordPress Rainbow Hilite” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.

المساهمون

لقد تم ترجمة ”WordPress Rainbow Hilite“ إلى لغة واحدة. شكراً إلى جميع المُترجمين لمُساهماتهم.

ترجمة ”WordPress Rainbow Hilite“ إلى لغتك.

مُهتم بالتطوير؟

تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.

سجل التغييرات

2.0.5

End-of-life notice

2.0.4

Fix PHP Fatal Error

2.0.2

Get rid of concating assets in PHP (use a Script optimizer plugin instead)

2.0.1

Introduce new release pipeline

2.0.0

Code refactoring

1.0.6

Localization: Move de_DE to translate.wordpress.org

1.0.5

Fix: Safer script loading

1.0.4

Fix: Scripts now are correctly minified by Autoptimize.

1.0.3

Fix: Load rainbow css after theme css

1.0.2

l10n: Change plugin textdomain to plugin slug.

1.0.1

JS Fix: play nice with prevoisly declared document.onreadystatechange callbacks.

1.0.0

Initial Release