Adding code in box on the forum

Click For Summary
SUMMARY

The discussion focuses on how to add code boxes in forum posts, specifically for MATLAB code. Users can utilize the tags to format their code correctly within the post. This method ensures that the code is displayed clearly, enhancing readability for others reviewing the thread. The example provided references a specific post on Physics Forums to illustrate the formatting technique.

PREREQUISITES
  • Basic understanding of MATLAB programming
  • Familiarity with forum posting guidelines
  • Knowledge of HTML formatting tags
  • Experience navigating online discussion platforms
NEXT STEPS
  • Research how to use tags in HTML for code formatting
  • Explore MATLAB debugging techniques to improve code quality
  • Learn about best practices for posting in online forums
  • Investigate additional MATLAB resources for troubleshooting code
USEFUL FOR

This discussion is beneficial for MATLAB students, forum users seeking to improve their code presentation, and anyone interested in enhancing their online communication skills in technical discussions.

gfd43tg
Gold Member
Messages
949
Reaction score
48
Hello,

I am taking MATLAB this summer and will be having a number of questions on this forum about all my bugged code when I make it. Before I begin, I was wondering how do people add those ''code boxes'' when they make a thread that shows all their code within the post.

Thanks

Example: Post #2 in https://www.physicsforums.com/showthread.php?t=756681
 
Physics news on Phys.org
Just use [noparse]
Code:
[/noparse] tags:

[noparse]
Code:
Matlab
   code
[/noparse]

displays as

Code:
Matlab
   code
 
  • Like
Likes   Reactions: 1 person

Similar threads

Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K