cancel
Showing results for 
Search instead for 
Did you mean: 

Code insert

Former Member
0 Kudos

Hi,

great idea providing the code tags. But, at least for java code, if i insert one EOL comment, all the following lines are greened...demo:

This works:


public void nothing() throws Anything {
  return;
}

This doesn't:


// This method does really nothing
public void nothing() throws Anything {
  return;
}

BTW, how is the code type (Java, ABAP...) recognized??? I'm wondering...

Regards

Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member374
Active Contributor
0 Kudos

Hi Stefan,

The interpreter is not perfect yet. Nevertheless we thought we bring it out. Colors may be off, but the spacing is correct.

The coloring was created for Java code. It does not yet recognize ABAP code, therefore the colors are off with ABAP even more.

The choice is to make it bland and take all font changes out or to live with some minor imperfections.

We have chosen the minor imperfections.

Please let us know what you prefer, Mark.

Former Member
0 Kudos

Hi Mark,

if the coloring for EOL comments (it works for javadoc comments, i've forgotten to mention) is a problem, just leave that feature out, highlight the keywords and provide the correct spacing (like it's done already). This should be sufficient for everybody, the code is readable, that's enough anyway.

If it's possible and easy to implement, provide a button for the formatting tags, like it's done for bold formatting.

If it's configurable and an ABAP formatter already available, use specific code formatting (Java, ABAP) for the forums, which are "dedicated" to a specific language.

Good idea and nice feature anyway!

Best regards,

Stefan

former_member181879
Active Contributor
0 Kudos

In some parts of SDN land this colour coding is a real pain. It just makes havoc of ABAP, HTML, JavaScript, taglibs (such as JSP and BSP), etc. I would great prefer that it be disabled.

The code blocks per se are good.

brian