CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to write code in the forum?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By Lieven

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2012, 12:13
Default how to write code in the forum?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 23
immortality is on a distinguished road
how can I put the code in its cde format in the thread?
thanks.
immortality is offline   Reply With Quote

Old   December 22, 2012, 13:46
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 19
Lieven will become famous soon enough
What do you mean exactly with code format?

Code:
This is code
is written as
[CODE]This is code[/COD E]
(remove the space in '/COD E')

Regards,

L
arsalan.dryi and Gerhard like this.
Lieven is offline   Reply With Quote

Old   December 22, 2012, 14:34
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 23
immortality is on a distinguished road
thank you dear lieven.
I should write
Code:
 and
at sides of the code.right?is there another way to do this?
Thanks alot.
immortality is offline   Reply With Quote

Old   December 26, 2012, 04:42
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,197
Rep Power: 47
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
thank you dear lieven.
I should write
Code:
 and
at sides of the code.right?is there another way to do this?
No. If that is too much typing for you look for the #-symbol just above the editing area
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 6, 2020, 16:51
Default code
  #5
New Member
 
sreekanth
Join Date: Dec 2019
Posts: 13
Rep Power: 3
neko2650 is on a distinguished road
This is how code is written
Code:
 enter text
If the code is written here the capture will take the example itself as code.
Just a small modification [c]enter text[/c]
NOTE c = code

Last edited by neko2650; May 8, 2020 at 05:06. Reason: tried to simplify
neko2650 is offline   Reply With Quote

Old   November 24, 2020, 09:21
Thumbs up code
  #6
New Member
 
Aliosat
Join Date: Jun 2019
Location: Iran
Posts: 2
Rep Power: 0
Aliosat is on a distinguished road
Code:
cp -r $FOAM_SOLVERS/incompressible/icoFoam .
Aliosat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COBRAS code novan tofany Main CFD Forum 0 October 8, 2012 04:40
New ANSYS forum structure, what do you think? Peter FLUENT 10 February 6, 2009 04:07
how to write a code or program for phoenics??????? Manjinder Phoenics 0 December 7, 2006 01:06
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 00:18
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 14:34


All times are GMT -4. The time now is 21:41.