The forum of the forums
Welcome on the Forumotion Support Forum.

To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you're not yet....



Create a free forum like this one.

Select All Code

View previous topic View next topic Go down

Do you want a Select All Option for Code

100% 100% 
[ 26 ]
0% 0% 
[ 0 ]
 
Total Votes : 26

Select All Code

Post by Sanket on January 31st 2010, 2:36 am

In our posts we generally add the code. After it is posted when we want to select the code, we drag our mouse & select it, so its kinda a pain to do it when the code is very long.

As we have seen in many phpbb boards they have the options near that code: Select All.

I think forumotion can also add such a feature. Just hit Select All, all code gets selected. Then we can copy it using ctrl+v


Last edited by Sanket on January 31st 2010, 11:28 am; edited 1 time in total

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by Maki1 on January 31st 2010, 5:28 am

Nice idea Very Happy

I voted Yes

Maki1
Forumotion Member

Male
Posts: 2529
Age: 26
Language: English »» CSS Stylesheet
Location: The » Support » forum » Section! • No support by PM If you need custom theme please contact me!
Points: 10132
Join date: 2009-10-25

http://forumdesigners.forumotion.com/

Back to top Go down

Re: Select All Code

Post by MrMario on January 31st 2010, 9:47 am

You can push ctrl+a to select all also. It doesn't matter to me since I always use ctrl+a

MrMario
Helper
Helper

Male
Posts: 22294
Language: English
Location: United States of America
Points: 74049
Join date: 2008-06-10

Back to top Go down

Re: Select All Code

Post by Skittles on January 31st 2010, 9:49 am

I usually right click and click select all myself. Wink And occasionally use Mario's way as well. Wink

Skittles
Forumotion Member

Female
Posts: 2990
Age: 46
Language: English and a bit of Swedish
Location: Sweden Göteborg
Points: 1232
Join date: 2007-12-24

http://moonlightcafe.forumotion.com/index.htm

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 11:12 am

MrMario wrote:You can push ctrl+a to select all also. It doesn't matter to me since I always use ctrl+a

What do you mean? Once the code is posted if you hit ctrl+a it selects everything on the page. Not just the code.

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by MrMario on January 31st 2010, 11:15 am

Oh you are talking about the post. I thought you said something about when you are posting in the reply box.

MrMario
Helper
Helper

Male
Posts: 22294
Language: English
Location: United States of America
Points: 74049
Join date: 2008-06-10

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 11:24 am

My bad, i was talking about after you post it.

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by Skittles on January 31st 2010, 11:27 am

Sorry I made the same mistake. Misunderstood and was following suit from what Mario said. BAD Mario....I blame him!! He confused me! lol

Skittles
Forumotion Member

Female
Posts: 2990
Age: 46
Language: English and a bit of Swedish
Location: Sweden Göteborg
Points: 1232
Join date: 2007-12-24

http://moonlightcafe.forumotion.com/index.htm

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 11:28 am

lol Skittles, i have edited my post to make it more clear Smile

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by The God on February 7th 2010, 11:08 am

i voted yes is a useful option ! :wouhou:

The God
Forumotion Member

Male
Posts: 1580
Language: Goodbye my friends !
Points: 5012
Join date: 2009-10-25

Back to top Go down

Re: Select All Code

Post by Kuro L Lawliet on June 3rd 2010, 8:34 pm


Kuro L Lawliet
Forumotion Member

Posts: 123
Language: English
Points: 520
Join date: 2009-04-08

Back to top Go down

Re: Select All Code

Post by Clug on June 5th 2010, 8:21 pm

Here's a simple code that would do it:
Code:
<script language="Javascript">
//Editable CSS
document.write('<style>.codeluapak</style>') ;

// auto copied to clipboard, set to [0=no, 1=yes]
var luapak=1

// No need to edit below
function highlightLuapak(dempv) {
var tempval=eval("document."+dempv)
tempval.focus()
tempval.select()
if (document.all&&luapak==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->
</script>

<a class="codeluapak" title="Clicking this will highlight the text in the box." href="javascript:highlightLuapak('code.select1')"><b>Select All</b></a>


Voted yes, as ForuMotion would get irritated when trying to copy the code I just pasted Wink

Clug
Forumotion Member

Male
Posts: 425
Language: English
Location: Australia
Points: 1764
Join date: 2010-01-14

http://lbtproductionz.forumsmusic.com/

Back to top Go down

Re: Select All Code

Post by The God on June 17th 2010, 9:31 pm

Clug , the code didn't work Sad

The God
Forumotion Member

Male
Posts: 1580
Language: Goodbye my friends !
Points: 5012
Join date: 2009-10-25

Back to top Go down

Re: Select All Code

Post by invisible_fa on June 18th 2010, 6:15 am

Yes!

I know exactly what you suggest, and yeah, sometimes when you have a long code, it makes difficult to select all manually with mouse, and sometimes you miss part of code, so this would be very helpfull, and Ive seen that SMF have it (don´t remember if pure Phpb's have it, but I guess so)

invisible_fa
Forumotion Member

Male
Posts: 415
Language: Spanish
Location: Does it matter? I`m Invisible, you wont see me anyway
Points: 821
Join date: 2010-01-09

Back to top Go down

Re: Select All Code

Post by APE on June 21st 2010, 10:38 am

You defo have my Vote for this one

APE
Helper
Helper

Male
Posts: 1531
Age: 37
Language: fluent in dork / mumbojumbo & English haha
Location: IN A BOX COME AND FIND ME !!
Points: 3454
Join date: 2008-04-03

http://chatworld.forumotion.co.uk/

Back to top Go down

Re: Select All Code

Post by Guest on June 22nd 2010, 3:18 am

Well i made this code hope it works. to try it just make a new HTML page put it there and click preview.
it works find to me. but you can modify it.

Code:
<form>
<p class="copy"><font color="#ff0000"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="Select code" class="button" type="button">

</font></p><p><textarea rows="9" cols="15" name="txt" class="seealso">
YOU TEXT HERE!
</textarea></p></form>

Guest
Guest


Back to top Go down

Re: Select All Code

Post by Dumbledore27 on June 22nd 2010, 8:52 am

Gangstar15 wrote:Well i made this code hope it works. to try it just make a new HTML page put it there and click preview.
it works find to me. but you can modify it.

Code:
<form>
<p class="copy"><font color="#ff0000"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="Select code" class="button" type="button">

</font></p><p><textarea rows="9" cols="15" name="txt" class="seealso">
YOU TEXT HERE!
</textarea></p></form>

Your code didn't work, and apparently I forgot to vote...

Vote yes. Smile

Dumbledore27
Forumotion Member

Male
Posts: 632
Language: Online
Location: Error 403 - You do not have the permission to view this item's value
Points: 1942
Join date: 2010-03-24

Back to top Go down

Re: Select All Code

Post by KingOfSports on June 22nd 2010, 10:05 am

I vote yes. this can be useful

KingOfSports
Forumotion Member

Male
Posts: 2531
Language: Want to send me a PM? Contact a staff member.
Points: 8407
Join date: 2008-12-30

Back to top Go down

Re: Select All Code

Post by Guest on June 22nd 2010, 10:27 am

Dumbledore27 wrote:
Gangstar15 wrote:Well i made this code hope it works. to try it just make a new HTML page put it there and click preview.
it works find to me. but you can modify it.

Code:
<form>
<p class="copy"><font color="#ff0000"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="Select code" class="button" type="button">

</font></p><p><textarea rows="9" cols="15" name="txt" class="seealso">
YOU TEXT HERE!
</textarea></p></form>

Your code didn't work, and apparently I forgot to vote...

Vote yes. Smile


http://www.aweza.net/Test-h5.htm

write something and click select code.

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum