Results 1 to 10 of 28

Thread: Code Indenter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    1,901

    Default Code Indenter

    I did a presentation at DAPcon 2016 at Brisbane yesterday and as part of that presentation I showed a little utility I banged up to properly indent my code
    based on keywords.

    Just saves a heap of time when cutting and pasting code snippets as I never need to worry about nice formatting as this does it for me.

    Attached is the main src and the view which is all that is required to create your own workspace drop these in register the project compile and your done.

    In the studio I added the utility yo the Utility Menu as

    Title - CodeIndenter
    Command=C:\YourDevPath\WorkspaceNameCodeIndent\Pro grams\CodeIndent.exe // whatever your file path is to workspace
    Param=<file>

    so this will format the current file opened in Studio editor

    PS

    No docs but I think it is self explanatory

    Also this reliies on uCharArrays which were introduced in 18.1 so only supported from 18.1 and above
    Attached Files Attached Files
    Last edited by Chris Spencer; 16-Oct-2016 at 04:18 PM.

Posting Permissions

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