Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the principle of syntax highlighting implementation of ABAP Development Tools?

Shulou Source: shulou.com Published: 2022-06-01 11:20:12 10月05日 Update

This article is to share with you what the principle of ABAP Development Tools grammar highlighting is, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The front end of ABAP Development Tools is Java, which does not recognize ABAP at all. So how is ABAP syntax highlighting in ADT implemented?

When you open a report for the first time, the code displayed in the ADT is not highlighted with any syntax

At this point, a HTTP request is sent to the ABAP background:

/ sap/bc/adt/abapsource/parsers/rnd/grammar?head=true

Request a pad file:

For the purpose of this pad file, refer to Jerry's blog:

How ABAP syntax highlight is implemented in "WebIDE" launched via browser

After the Pad file is loaded and rendered by ADT, the syntax is highlighted:

The above is what is the principle of ABAP Development Tools syntax highlighting. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Grammar highlighting file principle more knowledge article utility code function front end blog background that is work meeting effect article basic see knowledge point Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple Docker MariaDB Linux