News, tips, advice, support for Windows, Office, PCs & more. Tech help. No bull. We're community supported by donations from our Plus Members, and proud of it
Home icon Home icon Home icon Email icon RSS icon
  • When posting code on AskWoody, use the < pre > tag

    Home Forums AskWoody blog When posting code on AskWoody, use the < pre > tag

    Tagged: 

    Viewing 4 reply threads
    • Author
      Posts
      • #349744 Reply
        woody
        Da Boss

        The topic’s come up again and, with the Windows Secrets merge imminent (tell me if you’ve heard that one before), we’re going to see more and more cod
        [See the full post at: When posting code on AskWoody, use the < pre > tag]

        2 users thanked author for this post.
      • #349751 Reply
        b
        AskWoody Plus

        Noel Carboni has the full rundown here.

        That link doesn’t seem to lead anywhere useful for this topic.

        Windows 10 Pro Version 2004: Group ASAP (chump/pioneer)

      • #350051 Reply
        Paul T
        AskWoody MVP

        I couldn’t get it to work in the Visual editor.
        This worked for me.
        https://www.askwoody.com/forums/topic/word-365-macro-to-press-enter-repeatedly/#post-348619

        cheers, Paul

        • #350059 Reply
          Kirsty
          Da Boss

          As the topic referred to mentions, the Visual Tab on the text editor does not have a Code function, and differs in the way it formats text:

          “…the way a piece of code written or pasted to WordPress post editor is interpreted depends on whether you use visual or HTML post editor. Visual editor will consider the code to be an ordinary text … HTML editor does not convert any of these characters…”

          1 user thanked author for this post.
      • #350065 Reply
        Paul T
        AskWoody MVP

        I meant the <pre> tags.

        cheers, Paul

        • #350067 Reply
          Kirsty
          Da Boss

          Sorry, I was trying to indicate that the similarities between the code and pre functions, and the differences between the Visual and Text editor tabs, were discussed in the original topic.

          Using the Text tab gives a different result to the Visual tab, and removes the limitations in posting code. It is also less prone to html errors in posting.

          1 user thanked author for this post.
      • #350158 Reply
        NightOwl
        AskWoody Plus

        To All

        In addition to the < pre > and < /pre >, @ geekdom has posted a list of usable bbcode that works on this forum for formatting posts–see here: Forum Alphabetical Order bbCode List

        Noel Carboni wrote:
        _____________________________________________________________________
        Between < pre > and < /pre > tags (without spaces):

        Read this quote carefully–there are *spaces* before and after the *pre* and the */pre*–that’s how those bbcodes show up in the post by Noel Carboni, and Woody’s blog post here. When actually using those bbcodes, the spaces should not be there in order for the code to have its intended effect! Woody did not emphasize this fact in his blog post above, so I’m pointing it out in Noel Carboni’s description. If those spaces are omitted, those bbcodes would be *invisible* once the reply is posted.

        NightOwl

        No question is stupid ... but, possibly the answers are 😉 !

        1 user thanked author for this post.
    Viewing 4 reply threads

    Please follow the -Lounge Rules- no personal attacks, no swearing, and politics/religion are relegated to the Rants forum.

    Reply To: When posting code on AskWoody, use the < pre > tag

    You can use BBCodes to format your content.
    Your account can't use Advanced BBCodes, they will be stripped before saving.

    Cancel