Please add a sticky in the Programming forum telling people how to use code tags
LQ Suggestions & FeedbackDo you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please add a sticky in the Programming forum telling people how to use code tags
There are just too many posts in this forum where users post code right into the thread without code tags. Maybe they don't know about code tags or how to use them. I feel that it would be very helpful for everyone if users put all their code in code tags.
It's a real pain to read code not in code tags, and it is mandatory for some languages like Python.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
Quote:
Originally Posted by H_TeXMeX_H
There are just too many posts in this forum where users post code right into the thread without code tags. Maybe they don't know about code tags or how to use them. I feel that it would be very helpful for everyone if users put all their code in code tags.
It's a real pain to read code not in code tags, and it is mandatory for some languages like Python.
Consistent code tag usage in the Programming forum would likely be beneficial. If some senior member(s) would like to work on a well worded and informative post on the topic, we'd certainly be willing to sticky it. Thanks for the feedback.
Well, as long as it is going to be a sticky, may want to mention other helpful things to include in the post:
Programming language(s) required/used
A clearly worded, concise description of the problem
Your attempt at solving it (in code tags)
Examples of input and desired output
Errors if you have gotten them (also in code tags)
Anything else ? I'll try to write it if no one else more experienced volunteers.
I think the sticky in the Programming forum is a good idea, but code and config files find their way into nearly all of the forums, not just the Programming forum. A short reminder in the "Message:" block when you "Post New Thread" might also be useful. Currently, the text under "Message:" says
Quote:
You should include as much detail as possible in your message, including exact error messages (where applicable) and what you have done so far. The more detail you include the more we can help. You should also use the board's search feature to ensure that the question has not already been asked.
Perhaps modifying it to add something like the following would be helpful:
Quote:
Please use CODE tags around program fragments, commands, and config file listing so they will be formatted and presented in a readable fashion.
I'm looking forward to the updated version then. I'm getting really tired of seeing newbies posting raw code too.
On a related note I'd like to see the PHP code tag box fixed so that it doesn't expand the screen to gargantuan widths. Or even just removed entirely, since there's almost no specific need for it.
I'm looking forward to the updated version then. I'm getting really tired of seeing newbies posting raw code too.
On a related note I'd like to see the PHP code tag box fixed so that it doesn't expand the screen to gargantuan widths. Or even just removed entirely, since there's almost no specific need for it.
I was hoping for code-specific syntax highlighting, and the ability to click to download the code, like exists on the SlackDocs wiki.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.