Select All Code
Page 1 of 1 • Share •
Do you want a Select All Option for Code
Select All Code
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
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
Re: Select All Code
You can push ctrl+a to select all also. It doesn't matter to me since I always use ctrl+a

MrMario- Helper

-

Posts: 22294
Language: English
Location: United States of America
Points: 74049
Join date: 2008-06-10
Re: Select All Code
I usually right click and click select all myself.
And occasionally use Mario's way as well. 
Re: Select All Code
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.
Re: Select All Code
Oh you are talking about the post. I thought you said something about when you are posting in the reply box.

MrMario- Helper

-

Posts: 22294
Language: English
Location: United States of America
Points: 74049
Join date: 2008-06-10
Re: Select All Code
Sorry I made the same mistake. Misunderstood and was following suit from what Mario said. BAD Mario....I blame him!! He confused me! lol
Re: Select All Code
lol Skittles, i have edited my post to make it more clear 
Re: Select All Code
i voted yes is a useful option ! 


The God- Forumotion Member
-

Posts: 1580
Language: Goodbye my friends !
Points: 5012
Join date: 2009-10-25
Re: Select All Code
Someone made this poll too before
http://help.forumotion.com/suggestions-for-your-forums-f30/select-all-in-code-t50545.htm
I vote yes
http://help.forumotion.com/suggestions-for-your-forums-f30/select-all-in-code-t50545.htm
I vote yes

Kuro L Lawliet- Forumotion Member
- Posts: 123
Language: English
Points: 520
Join date: 2009-04-08
Re: Select All Code
Here's a simple code that would do it:
Voted yes, as ForuMotion would get irritated when trying to copy the code I just pasted
- 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
Re: Select All Code
Clug , the code didn't work 

The God- Forumotion Member
-

Posts: 1580
Language: Goodbye my friends !
Points: 5012
Join date: 2009-10-25
Re: Select All Code
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)
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
-

Posts: 415
Language: Spanish
Location: Does it matter? I`m Invisible, you wont see me anyway
Points: 821
Join date: 2010-01-09
Re: Select All Code
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.
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
Re: Select All Code
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.
Dumbledore27- Forumotion Member
-

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
Re: Select All Code
I vote yes. this can be useful

KingOfSports- Forumotion Member
-

Posts: 2531
Language: Want to send me a PM? Contact a staff member.
Points: 8407
Join date: 2008-12-30
Re: Select All Code
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.
http://www.aweza.net/Test-h5.htm
write something and click select code.
Guest- Guest
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum




by 








