1. Miguel Leeuwe
  2. PowerBuilder
  3. Friday, 25 August 2023 17:28 PM UTC
Just a sample of code block

Hi, it would be nice to have little "copy" icon when viewing code samples, like the one above.

Sometimes the code is very long and it's cumbersome to select the whole contents using the mouse.

See for example the code I pasted in a code block on https://community.appeon.com/index.php/qna/q-a/pb-2021-ide-script-editor (not the code pasted by the OP, but the code that I posted in a code block in my answer). Hmmm, that page never seems to stop loading, lol ... On Firefox it works, but in Chrome it never finishes to load the page.

Thanks for the upvotes!

regards,

MiguelL

Roland Smith Accepted Answer Pending Moderation
  1. Saturday, 26 August 2023 03:42 AM UTC
  2. PowerBuilder
  3. # 1
Comment
  1. Miguel Leeuwe
  2. Sunday, 27 August 2023 01:07 AM UTC
Exactly!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 26 August 2023 03:07 AM UTC
  2. PowerBuilder
  3. # 2

Hi Miguel;

  That's what CTRL+A is for.  ;-)

Regards... Chris 

Comment
  1. Miguel Leeuwe
  2. Sunday, 27 August 2023 01:07 AM UTC
it copies the whole webpage, not just the code block.
  1. Helpful
  1. Miguel Leeuwe
  2. Sunday, 27 August 2023 08:47 AM UTC
(Correction: it SELECTS the whole webpage).
  1. Helpful
  1. Chris Pollach @Appeon
  2. Sunday, 27 August 2023 14:46 PM UTC
Good point.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 25 August 2023 18:21 PM UTC
  2. PowerBuilder
  3. # 3

That IS a nice suggestion, Miguel. However, I'd be thrilled if tab characters were translated to 2 or 3 spaces instead of 8, so I wouldn't have manually tweak nearly every line of pasted PowerScript code simply to make the code appear somewhat close to the way it looks in the Script Editor. In 40+ years of software development, I've NEVER known anyone who codes in any language with tab stops defined at every eight characters. This "feature" is a PITA (and I'm not talking flatbread here).

Comment
  1. Francisco Martinez @Appeon
  2. Friday, 25 August 2023 19:44 PM UTC
For situations like these I use Notepad++ replace feature. It allows you to replace tab characters '\t' with whatever you want. It also allows you to do multiline editing (by holding Alt while you define the region with the cursor)
  1. Helpful
  1. John Fauss
  2. Friday, 25 August 2023 20:24 PM UTC
I hear you, Francisco... I make considerable use of Notepad++ - It's an excellent utility. Still, I grow weary of having to take additional steps in order to accomplish something the proper and correct way - I just have this silly notion in my head that computers and the software that runs on them ought to work for the betterment of me (or us) instead of us/me working for them. Thanks for the suggestion!
  1. Helpful 1
  1. Miguel Leeuwe
  2. Friday, 25 August 2023 22:27 PM UTC
I absolutely agree. 8 spaces is absurd.
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Friday, 25 August 2023 17:57 PM UTC
  2. PowerBuilder
  3. # 4

This is a nice suggestion. What you're proposing is often seen in other places, such as MS Documentation, StackOverflow, etc.

 

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.