forum bbcode suggestions
Hey, what's up
So, I was answering some questions in the AMXX scripting help section and I ended up having two ideas that may be useful. The first is to display the number of each line in the left edge of the code just like https://paste.ofcode.org. Sometimes the question author informs which line he's having problems with but there's no way to know what's that line unless you paste the code in a text editor like sublime or notepad. Also, once you click on the line number, the page is automatically scrolled. https://i.imgur.com/czKE06A.png The second one is to have a copy-all button. Currently you have to scroll down through the whole code to copy everything and depending on the length this may take forever. |
Re: forum bbcode suggestions
I doubt this will be done as the work on the forum itself is stalled (and new features should be made at bugzilla), but at least 'til then a tip for marking code for copy:
one klick left onto the first letter/symbol pull down the scrollbar to the bottom or whatever part you want to mark hold left shift and one more left klick on the last letter. done, everything marked. Takes only a few seconds this way. ;-) |
Re: forum bbcode suggestions
oh ok
Quote:
|
Re: forum bbcode suggestions
2 Attachment(s)
https://chrome.google.com/webstore/d...gnaaelnpjljija (or something similar)
Nothing fancy. It doesn't add line numbers to edits or new posts, only existing posts on page load. Edit to your liking. PHP Code:
|
Re: forum bbcode suggestions
That's cool, thank you for sharing
|
Re: forum bbcode suggestions
No problem. I love doing stuff with JavaScript.
I had a tug of war with the automatic forum security over onclick event in the code which I eventually won. Now also contains copy button. |
All times are GMT -4. The time now is 13:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.