cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Code in Blogs?

Former Member
0 Kudos

Hi all,

I'm writing my first SDN blog. In the blog I have a code snippet, but I haven't found out how to highlight the syntax as it is possible in the forum. Is it possible?

Thanks in advance for your help.

(Sorry if this is the wrong forum)

Best Regards,

marcel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. copy ur code to a word document

2. save that file as web page, File-->save as -->web page

3. open the document

4. put the cursor on any line -->right click --> view source code

5.copy the same code and paste in the blog

Former Member
0 Kudos

This one I don't highly recommend it may not work in the future

Former Member
0 Kudos

Then we can play around with the HTML tags

<b><b> </b> ---> for bold " all the tags are lost

<h1> </h1>--> for headings

<pre></pre>--> as suggested by eddie</b>

and so on , www.w3schools.com should help (u might be knowing)

Message was edited by:

Chandrasekhar Jagarlamudi

Message was edited by:

Chandrasekhar Jagarlamudi

Answers (2)

Answers (2)

Former Member
0 Kudos
eddy_declercq
Active Contributor
0 Kudos

Hi,

If the code isn't that long, you can encapsulate your code within <pre> tags, like I did in eg /people/eddy.declercq/blog/2006/12/19/eazy-az-1-2-3

Eddy

-


Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details

Former Member
0 Kudos

There is currently no way (out of testing) that allows for code highlighting the best thing to do is use the follow


<textarea cols="79" rows="10" readonly>
  ... your code here ...
</textarea>

Be sure to escape any < with &lt; and > with &gt;