اعتقد العنوان واضح
انا احتاج الى هذا ال plugin كثيرا بسبب كتابتي لاكواد ال php في مدونتي
جربت الكثير ولكن بدون جدوى
اتمنى ان اجد هذه الاضافة عندكم وعند من استخدمها في مدونته..
اعتقد العنوان واضح
انا احتاج الى هذا ال plugin كثيرا بسبب كتابتي لاكواد ال php في مدونتي
جربت الكثير ولكن بدون جدوى
اتمنى ان اجد هذه الاضافة عندكم وعند من استخدمها في مدونته..
جميع الإضافة المتوفرة سيئة لأبعد حد
أعمل على برمجة إضافة تخدم هذا الغرض ,,
قريباً سيتم نشرها إن شاء الله
ياريت والله ..المشاركة الأصلية كتبت بواسطة S.Wanderer
انا بحثت عن هذي الاضافة مع الاخ ديفو ولكن لم نجد ما يخدمنا .
في انتظارك
نعم ما وجدته اما لا يعمل مع الاصدارات الأخيرة ام انه لا بلون اكواد ال php مثل دالة highlight_file()
شئ غريب لايوجد شئ يعمل على الوورد بريس . انا لا استخدم الوورد بريس لكني استخدم GeSHI رائع جدا واشوف المدونات الاجنبية يستخدمونه
هذي اضافات للورد بريس تعتمد على GeSHI
http://blog.igeek.info/wp-plugins/igsyntax-hiliter/
http://www.byteclub.net/wiki/WordPress_csh_GeSHi_Plugin
لقد جربت اضافة GeSHI لكنها لم تعمل...
اخوي انا صدفة اليوم تذكرت اني مركب نسخة وورد بريس وركبت الاضافة هذي :المشاركة الأصلية كتبت بواسطة Nadorino
http://blog.igeek.info/wp-plugins/igsyntax-hiliter/
فقط حمل الملف المضغوط : http://www.igeek.info/download.php?file=1
وحمل الى مجلد الاضافات الخاص بك محتويات المجلد الذي باسم : ig_syntax hiliter plugin
بعدها فعل الاضافة وتستيطع بعدها كتابة الاكواد بشكل [\php] [\sql الخ لكن لاتستطيع ذلك الا في الواجهه النصية ليست المرئية wysiwyg ويمكنك ايضا اضافة Quick tags بالتعديل على الملف
wp-includes/js/quicktags.js
ستجد :
اضف بعده مباشرةكود:edButtons[edButtons.length] = new edButton('ed_more' ,'more' ,'<!--more-->' ,'' ,'t' ,-1 );
الكلام اللي في الاعلى ليس من عندي بل موجود في ملف الManual.htmlكود://----- Start iG:Syntax Hiliter Plugin's Quick Tags ----- edButtons[edButtons.length] = new edButton('ed_shAS' ,'ActionScript' ,'[as]' ,'[/as]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shASP' ,'ASP' ,'[asp]' ,'[/asp]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shC' ,'C' ,'[c]' ,'[/c]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shCPP' ,'C++' ,'[cpp]' ,'[/cpp]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shCSHARP' ,'C#' ,'[csharp]' ,'[/csharp]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shCSS' ,'CSS' ,'[css]' ,'[/css]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shDELPHI' ,'DELPHI' ,'[delphi]' ,'[/delphi]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shHTML' ,'HTML' ,'' ,'' ); edButtons[edButtons.length] = new edButton('ed_shJAVA' ,'JAVA' ,'[java]' ,'[/java]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shJS' ,'JavaScript' ,'[js]' ,'[/js]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shMySQL' ,'MySQL' ,'[mysql]' ,'[/mysql]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shPERL' ,'PERL' ,'[perl]' ,'[/perl]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shPHP' ,'PHP' ,'كود HTML:' ,'' ,'' ); edButtons[edButtons.length] = new edButton('ed_shPYTHON' ,'PYTHON' ,'[python]' ,'[/python]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shRuby' ,'RUBY' ,'[ruby]' ,'[/ruby]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shSMARTY' ,'SMARTY' ,'[smarty]' ,'[/smarty]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shSQL' ,'SQL' ,'[sql]' ,'[/sql]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shVB' ,'Visual Basic' ,'[vb]' ,'[/vb]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shVBNET' ,'VB.NET' ,'[vbnet]' ,'[/vbnet]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shXML' ,'XML' ,'[xml]' ,'[/xml]' ,'' ); edButtons[edButtons.length] = new edButton('ed_shCode' ,'CODE' ,'كود PHP:
' ,'
' ,'' ); //----- End iG:Syntax Hiliter Plugin's Quick Tags -----كود:' ,'
المشكلة الوحيدة اللي ظهرت هي اذا كانت المدونه عربية بتطلع الاكواد من يمين ليسار
ولحل ذلك قم بالتعديل على ملف ال css المرفق مع الاضافة الموجود في wp-content\plugins\ig_syntax_hilite\css
syntax_hilite_css.css
عدله ليصبحكود:.syntax_hilite { width:500px; }
ايضاكود:.syntax_hilite { width:500px; direction:ltr; text-align:left}
>>>كود:.syntax_hilite textarea { margin:0px -5px -2px 0px; border:none; }
والله اعلم .كود:.syntax_hilite textarea { margin:0px -5px -2px 0px; border:none; direction:ltr }
التعديل الأخير تم بواسطة Flasher ; 27-08-2007 الساعة 07:49 PM سبب آخر: خطا بسيط
ممتاز بارك الله فيك
لقد نجحت معي
النتيجة http://bp.ma/2007/08/04/%d8%af%d8%a7...8%d9%8a%d8%a9/
شكرا لك اخوي فلاشر ..
ولكن لا أستطيع استخدام هذه الاضافة مع المحرر المتقدم ؟
وهل تعمل مع WP 2.2.2 ?
في انتظار ردك الكريم
ممتاز
العفو يبدو اني مخطأ تستطيع نعم كتابة الاكواد في المحرر المتقدم لكن الازرار تجدها في المحرر البسيط فقط .المشاركة الأصلية كتبت بواسطة owner
النسخه اللي عندي 2.2.1 ما اظن فيه فرق واجد ..
نعم عندي نفس النسخة واشتغلت الاضافةالمشاركة الأصلية كتبت بواسطة owner