Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Adding code in box on the forum

Tags:
  1. Jun 9, 2014 #1

    Maylis

    User Avatar
    Gold Member

    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
     
  2. jcsd
  3. Jun 9, 2014 #2

    Borek

    User Avatar

    Staff: Mentor

    Just use [noparse]
    Code (Text):
     
    [/noparse] tags:

    [noparse]
    Code (Text):
    Matlab
       code
    [/noparse]

    displays as

    Code (Text):
    Matlab
       code
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Adding code in box on the forum
  1. Matlab codes (Replies: 2)

  2. Matlab code (Replies: 0)

  3. Latex Code (Replies: 4)

  4. Matlab Code (Replies: 2)

Loading...