Select All Code button

Discussion in 'Feedback and Suggestions' started by Georacer, Feb 25, 2011.

  1. Georacer

    Thread Starter Moderator

    Nov 25, 2009
    5,142
    1,266
    I have seen in other forums a "Select All" button above every Code segment. You click it and it automatically selects all of the code, ready for you to copy it.

    I find it very useful. Is there the possibility to implement that in AAC?
     
  2. jrap

    Administrator

    Jun 25, 2006
    961
    200
    Great suggestion Georacer - and sorry about the delay.

    How is this:

    Code ( (Unknown Language)):
    1.  
    2. foo() {
    3.     print bar;
    4. }
    5.  

    Rob
     
  3. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    That works great, not a beauty for the eye, but it works. Isn't it possible to change the button to something not so boring...?
     
  4. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    How about a button that automatically copies all the code rather just selects all of the code.
     
  5. Georacer

    Thread Starter Moderator

    Nov 25, 2009
    5,142
    1,266
    It works for me. Don't push the man more than necessary.
     
  6. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Offcourse it works and thanks for that because just now I posted something with code tags and the button was their........
     
  7. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    I see the Select All button has change to a link.

    Looks much better. :)

    Great!
     
  8. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Here we got a problem with "Select all" button, if we have more than one code tags all of them will be having its own "Select all" buttons but on clicking any one of them selects the code of the first code tag ..... here is the example

    C code
    Code ( (Unknown Language)):
    1.  
    2. #include "stdio.h"
    3. int main(void)
    4. {
    5. puts("Problem!");
    6. return 0;
    7. }
    8.  
    C++ code
    Code ( (Unknown Language)):
    1.  
    2. #include <iostream>
    3. using namespace std;
    4.  
    5. int main()
    6. {
    7. cout<<"Problem!"<<endl;
    8. return 0;
    9. }
    10.  
    On clicking above Select all button it will select the C code not the C++ one.
     
  9. Georacer

    Thread Starter Moderator

    Nov 25, 2009
    5,142
    1,266
    Nice find. I hope that can be fixed.
     
Loading...