preformatted text in WordPress.com for Google Docs

  • Unknown's avatar

    Hello! I’ve been using the WordPress.com for Google Docs add-on for a few months, and I really like it. It’s a big time-saver.

    There’s one thing I don’t know how to do, though, and I’m hoping it’s possible: code tags or preformatted text.

    Right now, I’m just changing the font within Google Docs, but that doesn’t impact what gets copied over from Docs to WP. Is there some kind of markup I can use? I write a lot of technical tutorials, and it’s a real drag having to add tags one by one after the doc has been copied over.

    Thanks in advance!

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

  • Unknown's avatar

    In case anyone else wants to know how to deal with this:

    Since it seems this is as much a problem with Google Docs’ lack of appropriate styles to apply as it is with this add-on, I decided to just handle it myself. I’m using Slack-style markup (single backquotes for code, triple backquotes for pre) and then doing a search/replace in Notepad++ with the code that was copied from GDs to WP. I saved the search/replace as a macro for easier use next time.

    It’s not ideal to have this extra step, but it beats having to do it always by-hand in the WP editor. And bonus: I can make my macro also switch b tags to strong and i tags to em, which is something that was bothering me before, but was too much of a pain to change manually.

  • Thanks for sharing your solution and for marking your thread as resolved. :)

  • The topic ‘preformatted text in WordPress.com for Google Docs’ is closed to new replies.