Many of yours faced with troubles in selecting/copying long source lines.
You must move your mouse while selecting lines very accurate, otherwise you'll select a whole thread and etc..
This issue and others like selecting source codes already been discussed, but I think that converting the code inside CODE tag into a local file on server would be better solution. It shouldn't be hard to implement.
Here are the simple scenario of this new feature:
1. User creates a new thread or add new post and pasting source code into a CODE tag.
2. Once editing finished and Create New Post or Reply buttons clicked, server gets content of CODE tag and generates text file on server
using following format: [threadId]-[PostId].txt - That's guaratees no duplicated filenames will be generated on server side.
3. When server will finish the conversion, user get the page with attached code in text format.
IMO, It is not necessary to generate text files if count of lines less than 50 or 100 lines..
The benefits of new feature are:
1. Source code selections replaced with simple downloading of text files
2. Donwload source code directly into local folder with required extention .bas, .inc, .rc etc
3. Less traffic used to download whole page with bigger source codes
4. The size of html pages generated for thread/post will be smaller
(html page with code tags will be smaller than page with link to a file)
5. Unique filenames on server
6. No Zip/Unzip required
Cheers,
Aslan.
You must move your mouse while selecting lines very accurate, otherwise you'll select a whole thread and etc..
This issue and others like selecting source codes already been discussed, but I think that converting the code inside CODE tag into a local file on server would be better solution. It shouldn't be hard to implement.
Here are the simple scenario of this new feature:
1. User creates a new thread or add new post and pasting source code into a CODE tag.
2. Once editing finished and Create New Post or Reply buttons clicked, server gets content of CODE tag and generates text file on server
using following format: [threadId]-[PostId].txt - That's guaratees no duplicated filenames will be generated on server side.
3. When server will finish the conversion, user get the page with attached code in text format.
IMO, It is not necessary to generate text files if count of lines less than 50 or 100 lines..
The benefits of new feature are:
1. Source code selections replaced with simple downloading of text files
2. Donwload source code directly into local folder with required extention .bas, .inc, .rc etc
3. Less traffic used to download whole page with bigger source codes
4. The size of html pages generated for thread/post will be smaller
(html page with code tags will be smaller than page with link to a file)
5. Unique filenames on server
6. No Zip/Unzip required
Cheers,
Aslan.
Comment