How do I remove an unwanted quotation mark conversion?

  • Unknown's avatar

    Why does a straight quote <“> on the edit page show up on the browser display as directed quotes (left and right) even when I select it as a straight quote from special characters? This is important for programming code text, as the C compiler doesn’t recognize directed quotes.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there! Could you please give me a link to a page that displays the issue?

    Your fonts are defaulting to the theme’s design. There are a couple ways around this. One is to upgrade to Custom Design. Then you have control over what fonts are used. Not only are other fonts offered to you, but you also have the option to edit your site’s CSS.

    Alternatively, if you do not want to upgrade, you may want to look into other Themes that have non-serif/non-curling quotation marks.

    Let me know if I can answer any questions about my suggestions. Thanks so much!

  • Unknown's avatar

    The page I was looking at is titled ‘Printing’
    In the first example, printf(“hello world”) looks as it does here in the editor, but shows on the browser page with the left and right quotes.
    Farther down there’s a code example, with a grey background where the printf statements show the same straight <“> in both the editor and the published page.

  • Unknown's avatar

    Thank you so much for the page title and the description of what is working and what is not.

    The problem is that there is a lot of extraneous HTML formatting controlling the behavior of your text. This may have happened if you copied and pasted any of the material on your site from a pre-formatted document.

    Here is how you can fix the first example on your Printing page. The same solution can be applied to all instances of the problem.

    1. Click Pages → All Pages.
    2. Click on Printing so it opens in the editor.
    3. With your content appearing in the Visual tab of your Page editor, copy:
      int main() {
      printf(“Hello World!”);
      }
      This just tells the computer to print Hello Word! on the screen.*
    4. Click on the Text tab. You will see the same text, but with lots of HTML surrounding it. Replace that whole section with what you just copied from the Visual tab.
    5. Once that is pasted, click the Visual tab. Highlight the coding you just pasted with your cursor.
    6. Click the Toolbar Toggle button. If you’re not certain where that is, click this link:
      https://cloudup.com/iEEFZtwtF0S
    7. Click on the down arrow in the drop down menu where Paragraph currently appears. Choose Pre.
    8. Update the change you just made to your page.

    Take a look. That text will now appear without the same trouble with the quotations. It will also appear in a gray box, like the lower coding on your page.

    In the future, typing your code directly into the Visual tab, rather than pasting, will help. You can also paste code into the Text tab. That will strip extraneous formatting. Then you can return to Visual to choose the Pre style for your coding.

    I hope this helps! Best wishes to you.

  • Unknown's avatar

    Thank you!
    It took a little while to find my way; but I did follow your instructions, and I now feel like I can fix the general problem.

  • Unknown's avatar

    Wonderful! I know I tossed a lot of steps at you, but I’m thrilled they worked out. Once your process is stream-lined, it won’t be laborious anymore. Best of luck!

  • The topic ‘How do I remove an unwanted quotation mark conversion?’ is closed to new replies.