Shop OBEX P1 Docs P2 Docs Learn Events
Newbie posting question — Parallax Forums

Newbie posting question

w4fejw4fej Posts: 264
edited 2014-09-21 08:32 in General Discussion
I know there is a way to post code fragments in a post but I can't seem to locate how to make this happen. Could someone point me in the right direction?

Thanks. Mike B.

Comments

  • T ChapT Chap Posts: 4,223
    edited 2014-09-20 05:58
    Just use brackets [ ] at the top and bottom of your code and put code at the top and /code at the bottom inside the brackets.

    your code here
    
    
  • mindrobotsmindrobots Posts: 6,506
    edited 2014-09-20 06:01
    [ code ]

    Fragment

    [ /code ]

    But remove the spaces before and after brackets yields
    Fragment
    
  • w4fejw4fej Posts: 264
    edited 2014-09-20 06:02
    T Chap wrote: »
    Just use brackets [ ] at the top and bottom of your code and put code at the top and /code at the bottom inside the brackets.

    your code here
    
    

    OK T_Chap, thanks. Looks simple enough even for me...!!
  • davejamesdavejames Posts: 4,047
    edited 2014-09-20 08:05
    w4fej wrote: »
    I know there is a way to post code fragments in a post but I can't seem to locate how to make this happen.


    codeTagsButton.PNG


    Another method is to select the code and then use the "#" button in the advanced editor to auto-insert the code tags.
    642 x 103 - 15K
  • w4fejw4fej Posts: 264
    edited 2014-09-20 08:09
    davejames wrote: »
    codeTagsButton.PNG


    Another method is to select the code and then use the "#" button in the advanced editor to auto-insert the code tags.

    This is what I love about Parallax forums, help is never far away from some of the brightest folks around. Thanks for that clue, that looks even easier !!

    Mike B.
  • davejamesdavejames Posts: 4,047
    edited 2014-09-20 08:15
    w4fej wrote: »
    This is what I love about Parallax forums, help is never far away from some of the brightest folks around. Thanks for that clue, that looks even easier !!.

    You're very welcome.

    Out of a box of 60W bulbs, I'm a 38W around here. :smile:

    This thread explains more about code tags:
    http://forums.parallax.com/showthread.php/129690-How-to-post-program-code-in-the-forum.
  • Matt GillilandMatt Gilliland Posts: 1,406
    edited 2014-09-20 10:38
    Out of a box of 60W bulbs, I'm a 38W around here.
    Yeah, but that's power consumption - your equivalent output is over a hundred :thumb:
    Many of my posts are the consequence of a too often used dimmer switch :tongue:
    -MattG
  • doggiedocdoggiedoc Posts: 2,243
    edited 2014-09-20 10:49
    Speaking of tags: did you know you can use the [noparse][noparse] tag to type things like
    ...
    
    [/noparse] without the added spaces?
  • ValeTValeT Posts: 308
    edited 2014-09-20 13:20
    Just an FYI,

    there is a button in the advanced post thingy ( can't think of the right word ) that will add code tags for you.

    Don't know if that helps at all, but it's all the wisdom I got :)
  • davejamesdavejames Posts: 4,047
    edited 2014-09-21 06:56
    ValeT wrote: »
    there is a button in the advanced post thingy ( can't think of the right word ) that will add code tags for you.

    post 5 :smile:
  • RDL2004RDL2004 Posts: 2,554
    edited 2014-09-21 08:32
    I didn't know about the "no parse" tag, Excellent tip.
Sign In or Register to comment.