Syntax highlighter for WordPress

While I was posting some code on my blog, the codes are not showing correctly. I post like Javascript, PHP or Shall command as well.

So I have searched for it.

There’s Enlighter plugin which makes codes beautiful.

WordPress Enlighter Plugin

Before enable the plugin, looked plain text. And codes are always messed up. After publish, the new line disappeared and even codes are changed. Like this…

Before applying enlighter plugin

And after plugin enabled.

After applied enlighter plugin

Looks cool, huh?

Also it provides plain text with popup and we can hide line number as well.

While I was searching for syntax highlighter plugin, I found WYSIWYG beautifier as well.

We need two plugins enabled. CodeMirror File Editor and HTML Editor Syntax Highlighter.

codeMirror file editor screen-shot-2016-11-22-at-10-41-51-am

This makes edit text using text field a lot easier.

It shows like this.

syntax highlighter for WordPress

What a colorful world!

Block spam comments on the WordPress post

After my blog launched several people are commented on my blog.
I am happy to get some respond from my reader.

By the way, there’s also unwanted visitors – spam robot or human spammer. This is getting annoyed.

Spams on my WordPress posting

To block these spam comments,  I installed free plugin called WP-SpamShield.

  1. Go to Plugins > Add a new, search for WP-SpamShield. Click Install and make it Active.
    WP-SpamShield plugin install
  2. Config the settings from Settings > WP-Spamshild menu
    WP-SpamShield settings
  3. Configure some settings like log.
    WP-SpamShield general settings

I will see if this helps. Go away flies!

Updates: Looks like this plugin works good. I don’t see spam comments anymore. Recommend to you.

Adding Google Analytics Stats on WordPress

After setup WordPress, I wonder how many users are visiting although it is just started.

I already got two comments, yay!

Here’s way how to add Google analytics code without changing programming. It just need few clicks and couple of minutes.

  1. Add plugin “Insert Headers and Footers”.
    Go to Plugins > Search “insert headers and footers” > Click Install now
    adding-google-analytics-stats-on-wordpress-plugin
  2. Go to Plugins > Installed plugins and Click Activate the plugin. adding-google-analytics-stats-on-wordpress-plugin-enable
  3. Sign up the google analytics and get tracking code.
    adding-google-analytics-stats-on-wordpress-signup
  4. Go to Settings >Insert Headers and Footers. Paste the tracking code into the footer text area.
    adding-google-analytics-stats-on-wordpress-settings2
  5. Now it is on the website.
    adding-google-analytics-stats-on-wordpress-code2I will see how many visitors today!