• AVR Freaks

Hot!Inserting code box.

Author
peterg1000
Super Member
  • Total Posts : 182
  • Reward points : 0
  • Joined: 2009/01/29 13:07:52
  • Location: Flamstead, Herts, UK
  • Status: offline
2020/02/27 05:04:36 (permalink)
5 (1)

Inserting code box.

I would like to insert some assembler code as part of a forum post but can't find any advice on the correct method of doing so.  Please can someone rectify my ignorance or point me in the right direction.
 
One other thing that surprises me - only gif, txt, jpg and zip extensions allowed?
What about all the normal source and include file extensions - do they have to be renamed as ".txt"?
 
 
#1

10 Replies Related Threads

    Mysil
    Super Member
    • Total Posts : 3670
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Inserting code box. 2020/02/27 06:46:56 (permalink)
    4 (2)
    Hi,
    The tags used to create a code box in a forum message are called 'BBCode',
    described here:  https://en.wikipedia.org/wiki/BBCode
    and: https://www.bbcode.org/
    In this forum, these tags are mostly used for code and quotes.
     
    About making attachment of files, there are limitations on what file types are allowed,
    that may be different between the different subforums.
    Generally,  .c source code files are allowed as attachments,  but header files are not. 
    If you go into '(Open Full Version)' in the message editor, it should list what filetype extensions are allowed.
    This 'PIC24 topics' forum seem to be most restrictive.
     
    Rather than showing fragments and snippets,
    it may be relevant to provide a small complete project that may be compiled and debugged,
    without having to recreate work you have already done, with possibly a different outcome.
     
    In MPLAB X there is a 'Package' facility that will collect files needed to restore a project:
    In 'Projects' panel, the upper left part of MPLAB window,
    point to root of the project,the small IC package icon, and Right-click.
    This should open a long Pop-up menu, where 'Package' is available.
    The resulting zipfile may be used as attachment to a message.
     
    For this to be successfull, project must be possible to build, but doesn't nessesarily have to function as expected.
     
        Mysil
    post edited by Mysil - 2020/02/27 07:11:41
    #2
    peterg1000
    Super Member
    • Total Posts : 182
    • Reward points : 0
    • Joined: 2009/01/29 13:07:52
    • Location: Flamstead, Herts, UK
    • Status: offline
    Re: Inserting code box. 2020/02/27 07:15:48 (permalink)
    5 (1)
    Hi Mysil,
     
    Thanks for your guidance on my queries.
     
    As regards file extensions, I've noticed that in the "18F" forum most of the common source file types are permitted, so am puzzled at the restrictions on the "24F" forum.  Seems very illogical to me.
     
    Peter.
     
    Thanks for the further guidance in your latest edit - I was preparing my reply whilst you were editing.
    post edited by peterg1000 - 2020/02/27 07:19:01
    #3
    ric
    Super Member
    • Total Posts : 27072
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Inserting code box. 2020/02/27 12:38:04 (permalink)
    5 (1)
    peterg1000
    As regards file extensions, I've noticed that in the "18F" forum most of the common source file types are permitted, so am puzzled at the restrictions on the "24F" forum.  Seems very illogical to me.

    That describes this whole board to a "T".
    It has been set up by several different people, with different skill sets, and is currently administered by someone who has little knowledge of forum operation, and little work time allocated to clean it up.
    No amount of complaining over many years has resulted in any improvement, so you just have to live with it.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    peterg1000
    Super Member
    • Total Posts : 182
    • Reward points : 0
    • Joined: 2009/01/29 13:07:52
    • Location: Flamstead, Herts, UK
    • Status: offline
    Re: Inserting code box. 2020/02/27 12:48:49 (permalink)
    5 (1)
    Doesn't do Microchips reputation any favours then when they ignore customers reasonable requests.  Just wonder if anyone of any authority actually reviews the forums.
    #5
    1and0
    Access is Denied
    • Total Posts : 10783
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Inserting code box. 2020/02/27 12:58:46 (permalink)
    5 (1)
    peterg1000
    Doesn't do Microchips reputation any favours then when they ignore customers reasonable requests.  Just wonder if anyone of any authority actually reviews the forums.

    That's Mr. Head's way of supporting Microchip end users. LOL!
    #6
    peterg1000
    Super Member
    • Total Posts : 182
    • Reward points : 0
    • Joined: 2009/01/29 13:07:52
    • Location: Flamstead, Herts, UK
    • Status: offline
    Re: Inserting code box. 2020/02/27 13:06:54 (permalink)
    5 (1)

    That's Mr. Head's way of supporting Microchip end users. LOL!

     
    One would have thought that they would welcome informed comment from a wide range of customers.
     
    #7
    1and0
    Access is Denied
    • Total Posts : 10783
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Inserting code box. 2020/02/27 13:20:27 (permalink)
    5 (1)
    peterg1000
    One would have thought that they would welcome informed comment from a wide range of customers.

    Known issues with this PlayGround forum as well as MPLAB X IDE, reported by end users, go back to the first releases are still exist many years later. Regrettably!
    post edited by 1and0 - 2020/02/27 13:21:43
    #8
    KTrenholm
    Super Member
    • Total Posts : 783
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Inserting code box. 2020/02/27 14:05:42 (permalink)
    0
    peterg1000
    As regards file extensions, I've noticed that in the "18F" forum most of the common source file types are permitted, so am puzzled at the restrictions on the "24F" forum.  Seems very illogical to me.



    I don't really use/post about 8-bitters so I had no idea the upload type restrictions were different on the 8-bit boards.
    That's absolutely amazing.
    #9
    ric
    Super Member
    • Total Posts : 27072
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Inserting code box. 2020/02/27 14:14:24 (permalink)
    0
    KTrenholm
    I don't really use/post about 8-bitters so I had no idea the upload type restrictions were different on the 8-bit boards.
    That's absolutely amazing.

    I'm sure it's not intentional.
    Just each time a new sub-forum was set up, a different person was doing it, and they just enabled what they thought might be needed.
    Same as some forums use stars for scoring, and others use up and down arrows. There's no rhyme or reason to it, just whatever the person creating it happened to pick when they did it.
    No-one ever goes back and reviews these things.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #10
    KTrenholm
    Super Member
    • Total Posts : 783
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: Inserting code box. 2020/02/27 14:19:19 (permalink)
    0
    ric
    KTrenholm
    I don't really use/post about 8-bitters so I had no idea the upload type restrictions were different on the 8-bit boards.
    That's absolutely amazing.

    I'm sure it's not intentional.
    Just each time a new sub-forum was set up, a different person was doing it, and they just enabled what they thought might be needed.
    Same as some forums use stars for scoring, and others use up and down arrows. There's no rhyme or reason to it, just whatever the person creating it happened to pick when they did it.
    No-one ever goes back and reviews these things.




    Oh I'm sure you're right that it's not intentional, and that it's basically for exactly the reasons your.  I just think it's kind of hilarious.
     
    post edited by KTrenholm - 2020/02/27 14:29:46
    #11
    Jump to:
    © 2020 APG vNext Commercial Version 4.5