Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2016
    Posts
    2

    Default Convert line endings of files automatically etc

    I would like to be able to either run a script to change file formatting of all files in a folder and/or on loading int BC.

    1. Trim trailing whitespace
    2. Leading spaces to tabs
    3. Make line endings consistent.

    Is this possible?

    Thanks
    Roger

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Hello,

    We do not expose these commands in scripting, but they are available in the graphical interface in the Text Compare's Edit menu -> Convert File submenu. Scripting can create a file report, but does not currently support editing the original files.
    Aaron P Scooter Software

  3. #3
    Join Date
    Oct 2016
    Posts
    2

    Default

    Yes, I use those all the time, and would like to be able to automate it as I have a lot of source files.


    Quote Originally Posted by Aaron View Post
    Hello,

    We do not expose these commands in scripting, but they are available in the graphical interface in the Text Compare's Edit menu -> Convert File submenu. Scripting can create a file report, but does not currently support editing the original files.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,623

    Default

    Hello,

    Our script engine does not support these commands, or editing the files themselves. It's something I can add to the Customer Wishlist. Our wishlist is not currently scheduled development, but a place our developers go to for ideas for future features and enhancements.
    Aaron P Scooter Software

Posting Permissions

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