How to write BB codes in this forum?

  • Thread starter Thread starter Jiho
  • Start date Start date
  • Tags Tags
    Forum
Click For Summary
To display programming code effectively in a forum, users should utilize the "Insert..." button in the editing palette and select the "Code" option. This allows for the selection of the programming language, such as Python, and provides a dedicated box for code input. This method ensures proper formatting and syntax highlighting, enhancing readability and presentation.
Jiho
Messages
20
Reaction score
4
Hello.

I want to show like this
upload_2019-2-14_3-23-19.png


not
upload_2019-2-14_3-21-40.png


I tried [PYTHON], [Python], [ CODE](Python), etc. But They weren't run. How can I display my programming language?
 

Attachments

  • upload_2019-2-14_3-21-40.png
    upload_2019-2-14_3-21-40.png
    515 bytes · Views: 779
  • upload_2019-2-14_3-21-51.png
    upload_2019-2-14_3-21-51.png
    503 bytes · Views: 350
  • upload_2019-2-14_3-23-19.png
    upload_2019-2-14_3-23-19.png
    513 bytes · Views: 762
Physics news on Phys.org
How about:
Python:
xyz
Python:
xyz
 
  • Like
Likes Jiho and jim mcnamara
Or, as per this sticky thread in the programming forum:

Read this before posting code! GeSHi Syntax Highlighter

Click the "+" ("Insert...") button in the editing palette, then choose the "Code" option. You'll get a menu of choices for the language (including Python, of course), and a box to type your code into.

code1.gif


code2.gif
 

Attachments

  • code1.gif
    code1.gif
    8.8 KB · Views: 596
  • code2.gif
    code2.gif
    11 KB · Views: 592

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
963
Replies
3
Views
2K
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
64
Views
9K