Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3939416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:17:51+00:00 2026-05-20T00:17:51+00:00

I recently switched my blog from joomla to wordpress and i’m having problems when

  • 0

I recently switched my blog from joomla to wordpress and i’m having problems when posting code snippets.

The editor seems to remove some of the characters when i save my posts.

I am using a plugin that i got from this link: http://alexgorbatchev.com/SyntaxHighlighter/

Example:

<pre class="brush: javascript">;
var window.onload = function() {
    alert("Loading is complete");
};
</pre>

Is formatted to:

<pre>;
var window.onload = function() {
    alert("Loading is complete");
};
</pre> 

How can i solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:17:52+00:00Added an answer on May 20, 2026 at 12:17 am

    If you’re on WordPress.com, I believe you should be using a shortcode like so: http://en.support.wordpress.com/code/posting-source-code/

    If you’re on self-hosted WordPress and using the WordPress plugin Syntax Highlighter (http://wordpress.org/extend/plugins/syntax-highlighter/), again I think the correct way to insert code is by wrapping it in a shortcode. So instead of < pre > you would use:

    [javascript]
    // your code here
    [/javascript]
    

    If neither of these sounds like an ideal solution (or works) there are a bunch of other syntax highlighter plugins for self-hosted WordPress that might be better: http://wordpress.org/extend/plugins/search.php?q=syntax+highlighter

    Hope this helps – best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently switched our Windows software packages from RPM (cygwin) to MSI (wix). Having
So I recently switched away from wordpress. Wordpress keeps all of it's feed URLs
We recently switched some of our sites from deflate to gzip and noticed a
I've recently switched from being an employee of a small consulting company to being
I've recently switched from storing session data in a cookie to storing it in
I recently switched from Eclipse to NetBeans (although I don't have any current Eclipse
I recently switched to a new setup that is reporting PHP Notices; my code
I've recently switched from a Windows XP machine to Windows 7. I use Subversion
I've recently switched from log4j to logback and am wondering if there is an
Good day! I've recently switched from IIS 6.0 to IIS 7.x and I'm in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.