Paste the code in the HTML editor, it probably won’t try to convert indents and linebreaks. Surround it with the [sourcecode]
shortcode and only then return to the visual editor.
Related Posts:
- Formatting Code Snippets on Free WordPress.com Account?
- Is it possible to use github:gist with WordPress? [closed]
- Math notation on WordPress.com?
- Using WordPress publicize with main account and editor user accounts
- Who owns the content posted on .wordpress.com blogs? [closed]
- Can I integrate Google Analytics with my blog, hosted at wordpress.com?
- Redirecting traffic from old “.WordPress.com” blog to privately hosted WordPress blog?
- Is it possible to use wordpress.com with a custom domain without switching nameservers?
- Can I use AdSense on a free wordpress blog? [closed]
- Reblog wordpress.com posts on self hosted
- Import and export links from WordPress.com to private site
- Migrating from WordPress.com to self-hosted site and autoforward visitors?
- Creating external apps WordPress / How they work
- How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?
- Ads Restricted on WordPress.com?
- Do I need to use a new WordPress.com account for each Jetpack installation
- Implications of changing wordpress.com associated with Jetpack [closed]
- WordPress.com vs WordPress.org
- How can I transfer followers from WordPress.com to a self-hosted WordPress?
- How do I disable trackback notifications on a WordPress.com blog?
- Is there any way I can put google ads on wordpress.com? [closed]
- Changing $latex $ equation background color globally
- Blog in multiple languages on WordPress.com?
- Can I move to wordpress.org and continue to be included as a wordpress.com favorite blog?
- If I backup my wordpress blog, how can I back-up all the external images I’ve embedded?
- How to change the language of a wordpress.com blog?
- “Connect” my personal website to wordpress.com
- Unknown Posts added to my wordpress website from nowhere [closed]
- Does wordpress.com appears in the URL if I buy custom domain service from WP.com
- Adding existing domain name to WordPress.com
- List WordPress.org Blog on WordPress.com
- How to intergrate wordpress.com with twitter like the way it is with facebook?
- What is the difference between WordPress Business plan vs self hosted WordPress (WordPress developer perspective)? [closed]
- Is a *.wordpress.com blog easy to migrate?
- Self-hosted blog Admin Panel Forwarding to WP.com
- How much effort to migrate from .com to .org
- How to get a retweet button on my wordpress.com blog?
- Displaying Meta-Box Data Properly
- WordPress.com podcast feed missing iTunes tags?
- Removing the WordPress.com ribbon
- hosted wordpress.com to local directory?
- How do I associate a domain, with an existing WordPress blog? [closed]
- Moving WordPress.com site to personal domain intact
- Newlines in WordPress.com blog?
- syntax Highlighting on wordpress.com blog
- Will “Google XML Sitemaps” plugin work without “wp_head();”
- Use ColdFusion to pull in WP.com posts?
- Your own Bookmarklet in a blog
- Difference between WordPress and Tumblr?
- What is the http://go2.wordpress.com/ redirect?
- Is there a way to check in the dashboard if I am using a separate installation or WordPress.com?
- Creating a staging area for WordPress.com site
- How to redeploy a free WordPress site to another IP?
- Is there any better way to write math in latex other than $latex **$
- What is files.wordpress.com?
- Transferring standalone wordpress blog to the one under **.wordpress.com
- WordPress.com-registered domains
- WordPress.com how are ‘related posts’ determined? [closed]
- In what file I should include my code if I want content to come up on top of everything?
- How do I transfer from a self hosted blog to WordPress.com?
- How to display different styles on index posts in wordpress pages? [closed]
- How to make that all permalinks would open in a new window?
- Add icons to bullet list in wordpress [closed]
- Why i cant change my alignment?
- Subdirectory Folder access with with Specific URL (post /subPage or sub.domain.com/)
- How do I allow ipv6 traffic for my WordPress website?
- wordpress site name by url query string
- What are the differences between managed WordPress hosting and dedicated WordPress hosting? [closed]
- How to prettyprint a JSON file?
- What does {0} mean when found in a string in C#?
- Why is wp_kses not keeping style attributes as expected?
- What theme is good for posting code? [closed]
- Problem in wordpress with “-“
- Place page title in header?
- Including Angle Brackets In Pre Sections
- Shortcode from a widget is wrapped in unwanted element
- Email sent from WordPress has HTML tags
- How to get year, month and hour in WordPress?
- Simultaneously post in both WordPress.com and self hosted WordPress blog
- Use a language specific thousand separator
- How do i get (unique) page name?
- Displaying Archives List
- How does WordPress determine which multisite the user is on from the URL?
- wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’
- What does the Global Variable $s represent?
- Code snippet to show current php version inside “At a Glance” box in admin
- Remove formatting in rich text with Gutenbergs Block editor
- I want a widget to appear on only one page
- Display KML (or other “raw data” file) nicely in WP?
- why doesnt my formatting work in my wisiwig editor?
- How do I prevent WordPress from eating my code?
- load plugin in code snippet
- Add space to the end on a widget
- get post excerpt by query
- Display pages from specific page template
- Anchor Text code string is automatically modified by WordPress
- Generating a number based on post ID
- Code in functions.php appearing on front-end and dashboard [closed]
- Commenting in CSS (//) equals “none”? [closed]
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]