UltraEdit adaption. - Page 2


+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31

Thread: UltraEdit adaption.762 days old

  1. #16
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,165
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    I agree, FL is a great IDE and I quite often use it particularly when I have lots of nested loops and if then's.
    Code folding in Basic has its limitations, in a structured language like VB or Pascal its fine as each collapsible section is well defined. In Proton Basic, unless you are using the P24, there are no clear markers for routines. The best you can do is code fold on:

    Fold Start "if" "proc" "isr" "do" "while" "repeat" "for" "select"
    Fold End "endif" "endproc" "endisr" "loop" "wend" "until" "next" "endselect"

    While this will work, it confuses the flow of the code and IMO doesn't make life easier with large files. It works fine if your are working with P24 and most of your code is in Procs (as it should be). Until there reasonable way to differentiate between a label which heads a subroutine and any other label I don't think code folding in basic is very helpful.

    This is my experience as a result of working with Ultra Edit to customise it for ProtonPDS and adding UE's code folding feature.
    JohnB

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #17
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,466
    Thumbs Up
    Received: 71
    Given: 29
    Total Downloaded
    6.08 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    John,

    What I was thinking about code folding it is not necessary "if" "do" "while" etc...

    What I was thinking about was a section of code, say from a label to just before another label.

    If you have a label Main:, and then further down Parse_GPS: and then further down Default:, one can select to fold the section between Parse_GPS: and Default:.

    Because as I said before, let's say in the example above that Parse_GPS: routine is tested and works fine, and I decide to hide it away.

    In medium to large program I was thinking of doing each part an include file, but there is the trouble switching from one page to another if the need arises. However, if that section was folded then you can unfold it for a while and refold it when finished.
    Regards

    Joseph

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #18
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,165
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    That's fine as long you don't write code which has labels within a subroutine. If you have labels within a subroutine you will be collapsing odd bits of code and it will be very confusing top read.

    I agree that it would be nice to open the include file inside the open file but I think it could lead to problems. e.g. If you had done some substantial editing in the combined file it would be difficult to establish where the start and end of the include should be. A better solution might be to split the window and place the open include in one part of the window.
    JohnB

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #19
    Senior Member Stephen Moss's Avatar
    Join Date
    Jan 2006
    Posts
    511
    Thumbs Up
    Received: 31
    Given: 7
    Total Downloaded
    3.72 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Perhaps a specific sequence of comment characters could be used to indicate the start of foldable sections, for example if the special comment was ;:: (assuming ";" is the standard comment indicator) you would have something like...

    Code:
    ;:: Main loop
    Main:
    or
    Code:
    Main:  ;:: Main loop
    and fold everything from the line below the special comment line to the next special comment line

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #20
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,466
    Thumbs Up
    Received: 71
    Given: 29
    Total Downloaded
    6.08 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

    Quote Originally Posted by Stephen Moss View Post
    Perhaps a specific sequence of comment characters could be used to indicate the start of foldable sections, for example if the special comment was ;:: (assuming ";" is the standard comment indicator) you would have something like...

    Code:
    ;:: Main loop
    Main:
    or
    Code:
    Main:  ;:: Main loop
    and fold everything from the line below the special comment line to the next special comment line
    Much same of what I was thinking.
    Regards

    Joseph

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #21
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,165
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.75 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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #22
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,367
    Thumbs Up
    Received: 78
    Given: 45
    Total Downloaded
    1.39 GB

    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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #23
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,231
    Thumbs Up
    Received: 75
    Given: 181
    Total Downloaded
    5.15 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.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #24
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,367
    Thumbs Up
    Received: 78
    Given: 45
    Total Downloaded
    1.39 GB

    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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #25
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,165
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: UltraEdit adaption.

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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #26
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,231
    Thumbs Up
    Received: 75
    Given: 181
    Total Downloaded
    5.15 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.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #27
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,799
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #28
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,367
    Thumbs Up
    Received: 78
    Given: 45
    Total Downloaded
    1.39 GB

    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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #29
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,799
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #30
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,466
    Thumbs Up
    Received: 71
    Given: 29
    Total Downloaded
    6.08 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

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    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 top204 in forum Proton Users File Server
      Replies: 0
      Last Post: 29th October 2017, 09:47

    Members who have read this thread : 57

    Actions :  (Set 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