Python Forum
Just a trial. For learning code tags - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Board (https://python-forum.io/forum-26.html)
+--- Thread: Just a trial. For learning code tags (/thread-5248.html)



Just a trial. For learning code tags - sylas - Sep-25-2017

BBBBBBBBBBBBBBBB   vvvvvvvvvvvvvvv   kkkkkkkkkkkkkkkkkkk   pppppppppppppppppppp



RE: Just a trial. For learning - micseydel - Sep-25-2017

Could you explain why this is here?


RE: Just a trial. For learning - sylas - Sep-25-2017

[pythonnnnnnnnnnnnnn   tttttttttttttttttt   cccccccccccccccccccccc    yyyyyyyyyyyyyyyyyyyyy   hhhhhhhhhhhhhhh  hhgffffffffff  bbbbbbbbbbbbbbb  uuuuuuuuuuuuuuuuuuu  wwwwwwwwwwwwww   ttttttttttttttttttt  hhhhhhhhhhhhhhhhhhhhhhhhh  nnnhhhhhhhhh ccccccccccccccccccc][/python]

I am learning because I had many remarks about the scripts I sent. Text as if it was code. I don't see the advantage. Can you give me some explanations. I don't easily understand the "help" about all these.



RE: Just a trial. For learning - metulburr - Sep-25-2017

you mean code tags? Or in our case python, error, and output tags?

For starters python tags retain indentation, and gives the code a syntax highlighter, as well as separate it from other text.

error tags are for python tracebacks or other python errors, while output tags are for command line outputs. First of all it gives a color code for each one, and secondly it allows us to escape some HTML from it.

Putting all of these together when your text requires it makes it A LOT easier to read for readers. Otherwise you have issues such as not sure if the text is what you are saying to us, or whether its code or output. And you will just get more responses because its easier to read for people. A perfect example would be this post

If you need help with the format of BBCode tags you can read the help docs