on 11-22-2013 9:28 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Sander!
Inspired by your question, I've written a document on posting code snippets with ABAP syntax highlighting here on SCN.
Posting Good-looking ABAP Code Snippets on SCN
I hope this tutorial helps you as you help other SCN members with your ABAP skills!
Finally, please feel free to mark this post as liked, helpful or correct! Share your opinion with other SCN members!
Best regards,
Flávio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Flavio,
thanks for creating such a swell document. Code snippets look much prettier using this method.
Unfortunately I will not always remember this highlight website ( http://highlight.hohli.com/ ) Next to this, the font colors doesn’t match the ABAP Editor defaults.
So I’m still hoping someday such functionality will be embedded directly into the SCN editor.
Best,
Sander
What really too bad is that there were at least two ideas to ad ABAP highlighting to SCN's text editor and both were archived:
Hi,
As per my suggestion, you should for for last one.
You can find the syntax and call function in just a look.
Last one is better.
Thanks
DEV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.