Is there an ABAP custom control with which I can realize syntax highlightning? I am using DynPro and not Web Dynpro.
I want to display a textarea which highlights XML code. It would also be great if I could move the cursor to a certain position inside the textarea and therefore inside the code.
Can I do this with cl_gui_textedit?
You can use the
cl_gui_html_viewerclass to display XML code in the SAP GUI. This control uses Internet Explorer by default to display HTML content, and is also capable of showing XML content.Here’s some quick-and-dirty sample code to get you started. It’s part of a program which has one screen
100, containing a custom control namedXMLDEMO(height 27, width 120).The report zxmldemo:
And the include zxmldemo_status_0100o01:
I don’t think it’s possible to show and move the cursor.