The forum of the forums
Welcome to the Official Support Forum of Forumotion!

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've 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% 
[ 30 ]
0% 0% 
[ 0 ]
 
Total Votes : 30

Select All Code

Post by Sanket on January 31st 2010, 10: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, 7:28 pm; edited 1 time in total

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by Maki1 on January 31st 2010, 1:28 pm

Nice idea Very Happy

I voted Yes

Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English »» CSS Stylesheet
Location : The » Support » forum » Section! • No support by PM If you need custom theme please contact me!

http://forumdesigners.forumotion.com/

Back to top Go down

Re: Select All Code

Post by MrMario on January 31st 2010, 5:47 pm

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 : 22186
Reputation : 1830
Language : test

http://test.com

Back to top Go down

Re: Select All Code

Post by Skittles on January 31st 2010, 5:49 pm

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

Skittles
Hyperactive

Female Posts : 3013
Reputation : 11
Language : English, Sarcasm and a bit of Swedish
Location : Sweden Göteborg

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

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 7:12 pm

@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
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by MrMario on January 31st 2010, 7:15 pm

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 : 22186
Reputation : 1830
Language : test

http://test.com

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 7:24 pm

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

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by Skittles on January 31st 2010, 7:27 pm

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
Hyperactive

Female Posts : 3013
Reputation : 11
Language : English, Sarcasm and a bit of Swedish
Location : Sweden Göteborg

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

Back to top Go down

Re: Select All Code

Post by Sanket on January 31st 2010, 7:28 pm

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

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Select All Code

Post by Guest on February 7th 2010, 7:08 pm

i voted yes is a useful option ! :wouhou:

Guest
Guest


Back to top Go down

Re: Select All Code

Post by Kuro L Lawliet on June 4th 2010, 4:34 am


Kuro L Lawliet
Forumember

Posts : 123
Reputation : 10
Language : English

Back to top Go down

Re: Select All Code

Post by Clug on June 6th 2010, 4:21 am

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
Forumember

Male Posts : 425
Reputation : 6
Language : English
Location : Australia

http://lbtproductionz.forumsmusic.com/

Back to top Go down

Re: Select All Code

Post by Guest on June 18th 2010, 5:31 am

Clug , the code didn't work Sad

Guest
Guest


Back to top Go down

Re: Select All Code

Post by invisible_fa on June 18th 2010, 2:15 pm

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
Forumember

Male Posts : 884
Reputation : 18
Language : Klingon
Location : Does it matter? I'm Invisible, you will not see me anyway

Back to top Go down

Re: Select All Code

Post by APE on June 21st 2010, 6:38 pm

You defo have my Vote for this one





APE
Manager
Manager

Male Posts : 8319
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Re: Select All Code

Post by Guest on June 22nd 2010, 11: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, 4:52 pm

@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
Forumember

Male Posts : 632
Reputation : -3
Language : Online
Location : Error 403 - You do not have the permission to view this item's value

Back to top Go down

Re: Select All Code

Post by KingOfSports on June 22nd 2010, 6:05 pm

I vote yes. this can be useful

KingOfSports
Hyperactive

Male Posts : 2487
Reputation : 38
Language :
Location :

Back to top Go down

Re: Select All Code

Post by Guest on June 22nd 2010, 6:27 pm

@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

Re: Select All Code

Post by Count Dooku on January 19th 2015, 12:17 am

@Sanket wrote: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

Hi, a definite yes for me !
If not default, it should be set as such, as I also find sometimes great difficulty in selecting codes for copying.

Count Dooku
Forumember

Posts : 279
Reputation : 2
Language : English, French, some Arabic

Back to top Go down

Re: Select All Code

Post by _Twisted_Mods_ on January 19th 2015, 8:51 am

you mean something like this? .. ignore the text on top it shows up automatically on my forum for people who post scripts so they don't have to type it


_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Select All Code

Post by Ikerepc on January 19th 2015, 10:22 am

He mean Select code, like there at support forum too

Code:
at right top

Because we need javascript code for it, and that way it will be by default, on all forums.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Re: Select All Code

Post by Count Dooku on January 20th 2015, 8:32 pm

Forumotion already has this option, as it exists Wink

Count Dooku
Forumember

Posts : 279
Reputation : 2
Language : English, French, some Arabic

Back to top Go down

Re: Select All Code

Post by Ikerepc on January 20th 2015, 8:46 pm

Not by default, you need JavaScript for it. I opened my forum few days ago and I haven't it.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Re: Select All Code

Post by Derri on January 20th 2015, 9:15 pm

@Ikerepc wrote:Not by default, you need JavaScript for it. I opened my forum few days ago and I haven't it.

If its done via Javascript so easily then I don't know the likelihood of them adding it in by default.

I'm going to lock this suggestion as you can find the tutorial here http://help.forumotion.com/t93456-select-content-button?highlight=Select+All


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

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