Today 09:04
Forum: Website / Forum Issues
Starter: Lester
Views: 0
Replies: 1
Today 08:48
Forum: Proton Plus Compiler v3
Starter: IstvanK
Views: 0
Replies: 6
Go to last post By: Lester
Today 08:44
Forum: Test Postings
Starter: Lester
Views: 0
Replies: 3
Yesterday 22:15
Forum: The Lounge
Starter: towlerg
Views: 0
Replies: 0
+ Reply to Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: UltraEdit adaption.39 days old

  1. #21
    Article Author johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,138
    Thumbs Up
    Received: 66
    Given: 0
    Total Downloaded
    1.09 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Saving would be more complex; you would have to un-merge the included text from the open document and save any changes to the include file. Then you can do a straight forward save of the main program. Probably doable in the ProtonIDE. However, remember if you try and compile from the ProtonIDE by default it will save all open files before compiling. You would have to intercept the save and implement the un-merge and save function. If you wanted the edited page to appear as before compiling you have to restore the merged document. This would have the effect that only compile errors which occurred before the include file would be correctly referenced.

    Much of this might be possible using UltraEdit as you would have more control over the compile however, at present the trial period for my UltraEdit has expired and I am debating whether to spend the $99 to purchase a license.

    All in all I think this would be quite messy to implement.

    Just my thoughts...
    JohnB

  2. #22
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,197
    Thumbs Up
    Received: 95
    Given: 29
    Total Downloaded
    766.61 MB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Quote Originally Posted by johngb View Post
    ...All in all I think this would be quite messy to implement...
    I dropped code folding in FL not because it didn't work but because it is quite messy and I didn't feel I could make it work to my satisfaction. The program size with code folding greatly increased as did the risk of error.

    Norm

  3. #23
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,361
    Thumbs Up
    Received: 49
    Given: 124
    Total Downloaded
    2.37 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    I rather suspect that code folding of Proton subroutines is problematic unless you accept the disciple of only one return for each matching label and even then identifying a label with a 3rd party IDE seems difficult.
    George

  4. #24
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,197
    Thumbs Up
    Received: 95
    Given: 29
    Total Downloaded
    766.61 MB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Quote Originally Posted by towlerg View Post
    I rather suspect that code folding of Proton subroutines is problematic unless you accept the disciple of only one return for each matching label and even then identifying a label with a 3rd party IDE seems difficult.
    PIC24 Proc - EndProc could be easier located for collapse.

    Norm

  5. #25
    Article Author johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,138
    Thumbs Up
    Received: 66
    Given: 0
    Total Downloaded
    1.09 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Norm - I agree wholeheartedly with you - see my earlier post #16.
    JohnB

  6. #26
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,361
    Thumbs Up
    Received: 49
    Given: 124
    Total Downloaded
    2.37 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    That a bit like the old joke about asking an Irishman directions and being told that he wouldn't start from here.
    George

  7. #27
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,895
    Thumbs Up
    Received: 78
    Given: 25
    Total Downloaded
    1.37 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    I suppose you could check for a Return at the beginning of a line or perhaps within X spaces. Internal returns are usually well indented or follow a test.
    I know it's a bit messy but code folding would be very useful and it wouldn't be hard to modify any exception within the BAS file to fit the rule.
    John
    Last edited by John Drew; 29th November 2017 at 03:56. Reason: added a clarification

  8. #28
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,197
    Thumbs Up
    Received: 95
    Given: 29
    Total Downloaded
    766.61 MB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Another way of determining code collapse could be done by the user by typing a cc start and cc end marker such as the following:
    '[ccstart]
    if x > 5 then
    ....code
    endif
    '[ccend]

    Norm

  9. #29
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,895
    Thumbs Up
    Received: 78
    Given: 25
    Total Downloaded
    1.37 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    To quote a saying "There's more than one way to skin a cat".
    But not your cat Les, yours should be pampered
    John

  10. #30
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,632
    Thumbs Up
    Received: 61
    Given: 18
    Total Downloaded
    2.27 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Quote Originally Posted by normnet View Post
    Another way of determining code collapse could be done by the user by typing a cc start and cc end marker such as the following:
    '[ccstart]
    if x > 5 then
    ....code
    endif
    '[ccend]

    Norm
    A bit like Johngb bookmark works, which is exceptionally very good. Use it in every code I do.
    Regards

    Joseph

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Les has just uploaded UltraEdit from the 1990s.!
    By Les in forum Proton Users File Server
    Replies: 0
    Last Post: 29th October 2017, 09:47

Members who have read this thread since 16th December 2017, 03:46 : 0

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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