Results 1 to 3 of 3

Thread: Indenting my code when I post in the forum

  1. #1
    hipturtle's Avatar
    hipturtle is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.5
    Join Date
    Dec 2011
    Posts
    59
    Reputation
    21

    Indenting my code when I post in the forum

    Hello

    I have answered som posts recently and I don't seem to be able to get the hang of indenting my code. I have tried the CODE /CODE and the XCODE /XCODE Tags but they don't indent the code so i tried it with indented the code manualy with the tags but this did not work either.


    Please can someone help

    Thanks in advance

  2. #2
    Menthos is offline VB.NET Forum Master
    .NET Framework
    .NET 3.5
    Join Date
    Jul 2006
    Posts
    272
    Reputation
    171
    Code:
     use [ code ] and [ /code ] (without the spaces)
    or

     [ XCODE=vb ] [ /XCODE ] 


    Ok, so the xcode ones don't quite show in the example.

    If you use the advanced editor, there are handy shortcuts provided too.
    A friend will help you move. A real friend will help you move a body.

  3. #3
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,204
    Reputation
    2369
    What I do is copy the code from VS, and paste it into forum editor. The code copied from VS code editor is already indented, and forum formatting doesn't lose that when you use code formatting tags. You can use the code or xcode tags as explained in forum faq. As mentioned they are also available as formatting buttons in advanced posting editor. I usually click one of those buttons and then paste the code, but you can also paste the code first and select it, then click one of the tag buttons to surround the selection with that tag. The same also goes for all other formatting tags. Finally use the preview button to see if you are happy with how the post looks before you submit it.
    The xcode language parameter has be input manually, the Faq example uses parameter "vb", but it appears "vbnet" and "vb.net" is also valid, as long as they are lower case.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking