Inserting a block of code

 

Hi,

I am trying to figure out how to insert a block of code into a forum comment.

 

I know I'll kick myself when I hear the answer but appreciate any help:)

Tried SRC in the forum text editor. Perhaps just doing it wrong.


Thanks,

Brian 

 
Brian:

Hi,

I am trying to figure out how to insert a block of code into a forum comment.

 

I know I'll kick myself when I hear the answer but appreciate any help:)

Tried SRC in the forum text editor. Perhaps just doing it wrong.


Thanks,

Brian 

Hi Brian - yeah it's the SRC button mate. What's happening when you click that?

You should get a box pop up that you write your code in :)

 If it's still not working, a work-around is to click the HTML button and drop this in

<pre class="code">You should get a box pop up that you write your code in :)</pre>
 

 Thanks Stuart,

 

Let's try that now below.

ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-TakeProfit*Point,"macd sample",16384,0,Red);
         if(ticket>0)
           {
            if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))
               Print("SELL order opened : ",OrderOpenPrice());
           }
         else
            Print("Error opening SELL order : ",GetLastError());

 Okay, great!! It works.

Never saw the insert button so the code just looked like regular text in the pop up box.

I have kicked myself as promised :)

 

Thanks again - Cheers.

Brian 

 
Brian:

 Thanks Stuart,

 

Let's try that now below.

 Okay, great!! It works.

Never saw the insert button so the code just looked like regular text in the pop up box.

I have kicked myself as promised :)

 

Thanks again - Cheers.

Brian 

HAHAHA, no worries mate, hope you didn't hurt yourself :)
Reason: