cancel
Showing results for 
Search instead for 
Did you mean: 

Issues and Suggestions regarding syntax highlighting

dellagustin
Advisor
Advisor
0 Kudos

Hello All,

I was about to suggets to a member of the forum to use the syntax highlighting to post abap code, but when I tried to use it I found the following issues/missing features:

  • No support for ABAP code (the main programming language used in SAP)
  • The editor has problems:
    • Code looks strange/bold/shadowed when creating (IE9).
    • When editing an existing post the result is strange (IE9)
    • Blank lines are skiped when displaying the content (Browser independent)
    • Blank lines are doubled when pasting (Chrome 31).
  • The font is not monospaced, source code editors use mostly monospaced fonts. This may disrupt intentionally alligned comments.
  • It is not possible to insert a title for syntax highlighting block.
  • It is not possible to change the starting line number. This is useful when posting part of an existing sap standard code.

Best Regards,

Guilherme.

Accepted Solutions (0)

Answers (3)

Answers (3)

tkunisada
Explorer
0 Kudos

Hi Guilherme,

Do you have any plan to add a syntax highlighter for VB.NET? I write codes for SAP Business One SDK, which is mostly written by VB.NET. I have some more things I want to share in SCN blog.

dellagustin
Advisor
Advisor
0 Kudos

Hello Toshi,

Sorry for the very late response, I didn't get a notification from your query.

I am not the responsible for the SCN blog. As you can see above, I'm only a user that found some problems. You should open a separate discussion for your query here in the SCN Support community.

Best regards,

Guilherme.

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi - Another SCN member published a good document on this topic recently:

I agree it would be nice to have ABAP supported in the syntax highlighting. You should have a look at and vote this idea up: ABAP Syntax Highlighting

dellagustin
Advisor
Advisor
0 Kudos

Hi Jason,

Thanks for your answer, although I find the alternative presented in the blog post you suggested a little troublesome for something that should be simple.

The idea you suggested is currently archived, I replied the idea asking it to be reopened.

What about the issues reported in this discussion? Show I report them elsewhere?

Best Regards,

Guilherme.

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you specify which programming language did you select to highlight with and if you copy and pasted this as text only or with all the inherited formats? I need to be able to reproduce this in a consistent way with all the details to open a support ticket with our IT organization.

dellagustin
Advisor
Advisor
0 Kudos

Hi Jason,

I have choosen C++ and pasted directly from the windows notepad (a.k.a the best format remover ever made ).
Let me know if you need more information.

Best Regards.

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks: I've shared with some IT colleagues who would have a better understanding of this.

Note: sample text

#include <mylib.h>

#define max 1000

in main()

{

  char myVar;

  int i;

  for(i = 0; i < max; i++)

  {

  // do something

  }

}

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi - IT has opened a ticket to investigate and look into improving this.

> MKT-244

dellagustin
Advisor
Advisor
0 Kudos

Hello ,

Do you have any update in this issue?

I was writing a blog post today with a code snipped and it was quite painful to get it right without proper code highlighting.

This is taking quite a long time! almost one year and a half already...

Besides, the idea description is "Apply Fixed Width Font to Code Snippets in RTE", it also needs to include syntax highlighting in ABAP! (It is SAP! the main programming language is ABAP here!)

Best Regards,

Guilherme.

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

No fix yet.

To be honest, most resources are now focused on the planned migration:

dellagustin
Advisor
Advisor
0 Kudos

Screenshots were taken using the following blog post: