Quantcast
Channel: SCN : All Content - About SCN
Viewing all articles
Browse latest Browse all 1117

How to post ABAP code snippets

$
0
0

Hi SCN members,

 

I'm wondering, when I copy paste a code snippet in order to response on someone how to do something within ABAP, I've got several options in this WYSIWYG editor. When I press the '>>' Insert button, I can choose too put my snippet into:

 

Syntax highlighting > Plain / XML / SQL / c++ / c# / css/ javascript / php / python / ruby.

 

Then I get this lovely box:

 

CLASS lcl DEFINITION.  PUBLIC SECTION.     METHOD: START.
ENDCLASS.

 

But the key words CLASS, DEFINITION or PUBLIC SECTION are not 'BLUE'. Even not when I copy paste them from an editor directly.

And the font is also a True type, instead of the monospaced (space outlined) font. I can not change the font type there.

 

It's also possible to use the '>>' Insert button and hit the 'Quote' option.

 

CLASS lcl IMPLEMENTATION.

  METHOD start.

      WRITE : / 'This looks more like ABAP, but still no syntax highlighting'.

   ENDMETHOD.

ENDCLASS.

 

 

And in there I can choose another font. So that's good. But I really would like syntax highlights,

Of course the last resort is to add the highlights manually...

 

CLASS lcl IMPLEMENTATION.

  METHOD start.

      WRITE : / 'This looks more like ABAP, but still no syntax highlighting'.

   ENDMETHOD.

ENDCLASS.

 

But this is far to time consuming.

So now I'm wondering, what's best? Or is there something new coming up?

 

Best,

 

Sander


Viewing all articles
Browse latest Browse all 1117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>