WordPress Site me Code kaise Display kare

WordPress Site me Code kaise Display kare :

Kya aap apne wordpress site/post/page/comments me code display karna chahte Hein ? Yes!! Toh is post ko ant tak padhte rahiye, aapko idea mil jayega. By default, wordpress raw codes ko blog post, page, widgets aur comments mein se filter out kar deta hai. Aaj is post me mein aapko bataunga ki WordPress Site me Code kaise Display kare. Yahan mein 2 methods batane wala hoon.

Method 1 – Plugin ki Madad se WordPress Site me Code kaise Display kare

Pahle aapko install aur active karna hoga ek plugin. Jiska naam hai Syntax Highlighter Evolvedplugin. Yeh bhi padhe WordPress site mein plugins kaise Install kare.

Plugin ko activate karne ke baad ise configure karna hota hai. Uske liye yahan jaye settings » Syntax Highlighter.

Image

Default plugin settings lagvag har website ke liye kaam karta hai. Lekin settings Ko acche se dekh lena jaroori hai. Zaroorat padne par settings change kare.

Har ek setting ke niche description me likha hota hai ki is setting ko check ya uncheck karne se kya hoga. Ek baar settings configure karne ke baad “save settings” button pe click karke settings save kare.

Syntax Highlighter Evolved simple short codes ko istemal karke codes display karta hai. Codes ko properly display karne ke liye un codes ko wrap karna hoga. Niche example me dekh sakte hein.

[PHP] ke liye kuch is tarah se wrap kare;

Baad me Post me kuch aisa dikhega;

Image

[CSS] ke liye kuch is tarah se wrap kare;

Baad me Post me kuch aisa dikhega;

Image

Syntax Highlighter automatically us particular language ko highlight kar dega. Saath hi number, line aur handle tab bhi automatically add ho jayega. Website visitors easily waha se code ko copy karke paste kar sakte hein. Yeh thi method 1. Chalte hein method 2 ki taraf.

Ye Bhi Padhe :

Method 2 – Without any Plugin

Jyadatar Bloggers development blogs operate nahi karte hein balki text jyada hota hai. Toh isiliye kabhi kubhar hi code add karna hota hai. Agar aapke case mein Aisa hai toh aap post ki HTML Ko edit karke easily is chiz ko kar sakte hein.

>?php echo “Blogging Jankari”; ?<

Isme ek badi problem yeh aati hai ki codes ko HTML me convert karne me mushkil Hoti hai. Aap online tool jaise,. ko use karke codes ko HTML me convert kar sakte hein.

CSS, JavaScripts, HTMLs ko HTML entities me convert karke aasani se wordpress site ke post, page, widget ya phir comments me add ki jaa sakti hai.

Mein asha karunga ki yeh post aapke liye madadgar rahi hogi. Agar nayi jankari jan ne ko mili toh share jarur kare. Kyunki gyan bantne se badhti hai. Aise hi aur articles sabse pahle receive karne ke liye aap hume social media sites par follow kar sake Hein aur newsletter Ko bhi Subscribe kare.

Blogging Jankari me aane ke liye bahut bahut sukriya.

Majhar

I'm currently studying B.pharma. I blog in my spare times and share knowledge with you guys. It's been 4 years since I've been blogging. Here I share articles related to WordPress, Blogging, Internet and stuffs similar to these. I Hope, aapko kafi kuch Jan ne Ko milega.

Leave a Reply

Your email address will not be published. Required fields are marked *