WordPress.org

Forums

JSJ Code Highlight
Tab to spaces literally inserting numbers (5 posts)

  1. freakyleaf
    Member
    Posted 1 year ago #

    Hey!

    Just tried to use the 'Automatically replace tabs in your code with spaces' function, but on the front-end, I get the following output:


    <ul class="feature-boxes">
    1<li id="evenings-out" class="feature-box">
    11<div class="feature-title">
    111<h2>Evenings Out</h2>
    11</div>
    11<img src="/img/screen_assets/pleasure/evenings_out.jpg">

    When I change the numerical value, I get the corresponding number appear in the output (so 1 becomes 2 or 3)...

    Any help greatly appreciated!

    https://wordpress.org/plugins/jsj-code-highlight/

  2. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    hahahaha, wow that's a hilarious bug!

    It works if you just use tabs, right?

    What's your configuration for the plugin? Can you try adding different types of code to see if they all break? I just tried this in a couple of my WP installations and can't replicate it.

  3. freakyleaf
    Member
    Posted 1 year ago #

    Yeah tabs are fine! settings are as follows:

    • Theme is set as Monakai Sublime, although I've de-registered all plugin CSS files, and copied what I needed to my theme's CSS file.
    • I'm using 'web fonts (no external fonts)'
    • Have un-ticked 'Include additional CSS styles developed for this plugin.'
    • Tab replacement is currently off

    I've tried checking 'tab replacement' numerous times, and have entered many different numbers, all producing the same result. I've used CSS, PHP, and Perl, and again, each produce the same result.

    I've also used the plugin on two sites - one local and one live. The local one I disabled all other plugins, and switched the theme to Twenty Thirteen, as opposed to my custom-built one, but to no avail!

  4. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    Wait, now I'm a little confused: If you have tab replacement as in "off" or "on", you still get this error? It doesn't make a difference.

    No matter what you do, you still get this error always? Is that correct?

    When you say you have used CSS, PHP, and Perl. you mean you have used code snippets in these languages and the have all just shown numbers. correct?

    BTW, what's your server setup? OS, etc? What operating system are you using in your computer?

    I would love for you to help me fix this bug! Thanks!

  5. osk2
    Member
    Posted 1 year ago #

    same problem here when I enable "Automatically replace tabs in your code with spaces."
    http://i.imgur.com/oVqJu4K.jpg

    here's my settings
    http://i.imgur.com/gTXIGrh.jpg

    My environment
    OS: Linux Mint
    WP: 3.9.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSJ Code Highlight
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags