Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How to insert code into a post ?

jmloriot
Beginner
613 Views
0 Kudos
5 Replies
jimdempseyatthecove
Honored Contributor III
613 Views

The comment edit box has a tool bar. The next to the right most button:

{...}
code

You click on that. Then there is a drop-down box to select the language, which affects the formatting style. Then, you can past in a copied piece of your program. Then click on the appropriate submit button.

Jim Dempsey

0 Kudos
mecej4
Honored Contributor III
613 Views

Type in the introductory paragraphs (to explain the topic of the post, etc.) as usual, then move the cursor to the next line. Click on the "{...}code" button (the next-to-last button in the toolbar at the top of the comment box). Select the language (Fortran, C, etc.) using the drop-down menu, paste the program source into the box, and press OK. You can then add more paragraphs of text, if you wish. Finally, press "submit" and respond to any captcha-s that are presented.

0 Kudos
jmloriot
Beginner
613 Views

Thank you for your answer.

It works, but it does not include the line number and the color

0 Kudos
mecej4
Honored Contributor III
613 Views

The line numbers and syntax coloring are displayed after you press "submit" and the newly submitted post appears in the thread.

0 Kudos
Les_Neilson
Valued Contributor II
613 Views

Just to note if the file is large (for some definition of large) it would be better to attaché the file(s), as a zip, to the post.

Les

0 Kudos
Reply