Post codes to blog posts/comments with Postable مشاركة رموز لبلوق وظائف / التعليقات مع Postable

ADVERTISEMENT إعلان
To get our software and web/tips via email, sign up for للحصول على موقعنا على شبكة الإنترنت والبرمجيات / نصائح عبر البريد الإلكتروني ، والاشتراك في daily email newsletter البريد الإلكتروني النشرة الإخبارية اليومية . .
Subscribe to RSS feed اشترك في آر إس إس or أو follow me يتبعني on Twitter? على التغريد؟

Have you gaped in utter disbelief when the code you just posted on a blog (via post/comments) came back as some mumbo-jumbo, or even worse, broken that beautiful design? لقد كنت في ذهول تام مفغور عند رمز لكم فقط نشر على موقع على بلوق (عبر البريد / التعليقات) عاد عن بعض mumbo - الجامبو ، أو أسوأ من ذلك ، أن كسر التصميم الجميل؟ It happens all the time, thanks to the nature of HTML. وهو يحدث في كل مرة ، وذلك بفضل طبيعة أتش تي أم أل.

There may be HTML characters embedded in the code, which the browser renders, causing 101 million errors. قد تكون هناك شخصيات أتش تي أم أل المضمنة في رمز ، وهو ما يجعل المتصفح ، مما تسبب في 101 مليون أخطاء. It has happened to most bloggers, and there are many methods to stop it. فقد حدث أن معظم المدونين ، وهناك أساليب كثيرة لوقفه. You can open up a text editor, and find/replace all the characters that you want to fix. يمكنك فتح محرر نصوص ، والعثور على / استبدال جميع الشخصيات التي تريد الإصلاح. This may work with simple code which contains only a few angular brackets (eg: <). هذا قد عمل مع رمز البسيطة التي تتضمن سوى عدد قليل من الأقواس الزاوي (على سبيل المثال : <).

However, if you are posting something more complex, say some PHP code which has angular brackets, double-inverted commas, slashes etc., you are in trouble. ومع ذلك ، إذا كنت نشر شيء أكثر تعقيدا ، ويقول بعض رمز [فب] الذي بين قوسين الزاوي ، انقر نقرا مزدوجا الفواصل المقلوبة ، مائلة وما إلى ذلك ، أنت في ورطة. The need, then, would be for a tool which takes the code, and spits out browser friendly code. الحاجة ، بعد ذلك ، سيكون لأداة الذي يأخذ الرمز ، وتبصق رمز الصداقة المتصفح. This ensures that there are no وهذا يضمن أنه لا توجد wreckages حطام broken designs. تصاميم مكسورة.

Postable is one such tool. Postable هي أداة واحدة من هذا القبيل. The interface is clean and elegant, with a web 2.0 look (gradient background) which is just enough. واجهة نظيفة وأنيقة ، مع الويب 2.0 نظرة (خلفية متدرجة) وهو ما يكفي فقط. I've lost count of the number of sites that have gloss and reflection everywhere. لقد فقدت عدد من عدد من المواقع التي لها معان والتأمل في كل مكان. Thankfully, the design of Postable is really clean. الحمد لله ، وتصميم Postable حقا نظيفة. My only gripe with it would be the colour palette used for the design. لي وجع فقط مع انها ستكون الألوان المستخدمة في التصميم. See the image below to understand what I mean. انظر الصورة أدناه لفهم ما أعنيه.

Postable
Ain't the design gorgeous? لم يتم تصميم رائع؟

The developer of the tool is المطور من هذه الأداة هي Elliot Swan إليوت البجعة . .

Absolutely hate having to switch all the “<” and >” signs in my code to “<” and “>”, respectively. أكره تماما الحاجة إلى التبديل جميع "<" و> "علامات في بلدي رمز إلى" < "و"> "، على التوالي. I also hate having to write “&amp;” anytime I want to include an ampersand. كما أكره الاضطرار الى كتابة "و" في أي وقت أريد أن تشمل العطف. This makes including code snippets on my blog and whatnot extremely annoying, and today I finally got fed up وهذا يجعل منها مقتطفات الشفرة على بلدي بلوق وغيرها مزعج للغاية ، واليوم أنا أخيرا حصلت سئمت (more)… (المزيد)...

ADVERTISEMENT إعلان

The name, “Postable”, is written in large letters ( sans reflection). اسم "Postable" ، وكتب عليه بحروف كبيرة (بلا تفكير). There is a code box, and a simple button named “make it friendly” below. هناك شفرة مربع ، وعلى زر بسيط يدعى "جعلها صديقة" أدناه. It is AJAXed, which saves you a reload of the page. فمن AJAXed ، مما يوفر لك وتحديث للصفحة. I tested it on a slow connection, and it managed to load quite fast. اختبرته على اتصال بطيء ، وأنها تمكنت من تحميل سريعة جدا. The scripts working behind the screen are Prototype and Scriptaculous JS library, along with a custom script. البرامج النصية تعمل من وراء الشاشة هي نموذج وScriptaculous شبيبة المكتبة ، جنبا إلى جنب مع سيناريو مخصص.

The only nag that I have found is that it does not accept more than 5000 characters. وتذمر إلا أنني وجدت أنها لا تقبل أكثر من 5000 حرفا. But this is a no-brainer, as I am yet to come across anyone who needs to post more than that amount. ولكن هذا هو عدم التفكير ، وأنا لم يأت عبر شخص يحتاج إلى مشاركة أكثر من هذا المبلغ.

I am happy that I found this tool, as it makes posting code a breeze. أنا سعيد لأنني وجدت هذه الأداة ، لأنه يجعل من نشر مدونة نسيم. I had earlier used the previously-mentioned method of find/replace, which was stupidly slow, not to mention the inaccuracy. كان لي في وقت سابق استخدام الأسلوب السابق الذكر من العثور على / استبدال ، الذي كان بغباء بطيء ، ناهيك عن عدم دقة.

Go to انتقل إلى Postable Postable . .

What are your views on this tool? ما هي وجهات نظركم بشأن هذه الأداة؟ Do you use any other tool? هل استخدام أي وسيلة أخرى؟ Do tell me about alternate tools through comments. لا تقولوا لي عن أدوات بديلة من خلال التعليقات.

To get our latest articles, للحصول على أحدث المقالات ، click here to sign up انقر هنا للتسجيل for our free email newsletter or subscribe to لدينا الحرة الإخبارية عبر البريد الإلكتروني أو الاشتراك في RSS feed آر إس إس

§ Comments تعليقات §