• When posting code on AskWoody, use the < pre > tag

    Home » Forums » Newsletter and Homepage topics » When posting code on AskWoody, use the < pre > tag

    • This topic has 8 replies, 6 voices, and was last updated 6 years ago.

    Tags:

    Author
    Topic
    #349744

    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.
    Viewing 3 reply threads
    Author
    Replies
    • #349751

      Noel Carboni has the full rundown here.

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

    • #350051

      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

        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

      I meant the <pre> tags.

      cheers, Paul

      • #350067

        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

      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.

      1 user thanked author for this post.
    Viewing 3 reply threads
    Reply To: When posting code on AskWoody, use the < pre > tag

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

    Your information: