Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Hours of programming / debugging ? Here is something useful for SAP ABAP developers to reduce stress on your eyes :smile:

First go to SE38 -> Utilities -> Settings -> Editor tab -> Front-end Editor (new). Click OK and you’re done.

Create 2 xml files (find the code below)

1. abap_spec.xml

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="lang_spec.xslt"?>
  3. <XMLConfigSettings>
  4. <FILEINFO>
  5. <Author>Mr Black</Author>
  6. <Type>LangSpec</Type>
  7. <Language>ABAP</Language>
  8. <Desc>Language specification for ABAP</Desc>
  9. </FILEINFO>
  10. <SPECIFICATION>
  11. <FilePattern>*.abap</FilePattern>
  12. <LexerDll>sapab4lex.dll</LexerDll>
  13. <CaseSensitive>0</CaseSensitive>
  14. <OpenClose>()[]''``||{}</OpenClose>
  15. <Delimiters>,.:</Delimiters>
  16. <WrapBy>(),</WrapBy>
  17. <LineEnd>.</LineEnd>
  18. <Words>0-9a-Z_/&lt;&gt;</Words>
  19. <HierarchySeparator>
  20. <Separator id="1" text="-"/>
  21. <Separator id="2" text="-&gt;"/>
  22. <Separator id="3" text="=&gt;"/>
  23. <Separator id="4" text="~"/>
  24. </HierarchySeparator>
  25. </SPECIFICATION>
  26. <STRUCTURES>
  27. <exception-follows value="="/>
  28. <Structure open="region" close="endregion" header="0" has_name="1" sent_start="1"/>
  29. <Structure open="if" middle="else" close="endif" header="1" sent_start="1">
  30. <Middle name="elseif"/>
  31. </Structure>
  32. <Structure open="case" middle="when" close="endcase" header="1" sent_start="1">
  33. <Middle name="others"/>
  34. </Structure>
  35. <Structure open="loop" close="endloop" header="1" sent_start="1"/>
  36. <Structure open="form" close="endform" has_name="1" separator="1" header="1" sent_start="1"/>
  37. <Structure open="while" close="endwhile" header="1" sent_start="1"/>
  38. <Structure open="do" close="enddo" header="1" sent_start="1"/>
  39. <Structure open="try" middle="catch" close="endtry" header="1" sent_start="1">
  40. <Middle name="cleanup"/>
  41. </Structure>
  42. <Structure open="class" close="endclass" has_name="1" separator="1" header="1" sent_start="1"/>
  43. <Structure open="method" close="endmethod" has_name="1" separator="1" header="1" sent_start="1"/>
  44. <Structure open="function" close="endfunction" has_name="1" separator="1" header="1" sent_start="1"/>
  45. <Structure open="module" close="endmodule" has_name="1" separator="1" header="1" sent_start="1"/>
  46. <Structure open="interface" close="endinterface" header="1" sent_start="1"/>
  47. <Structure open="at" close="endat" header="1" sent_start="1"/>
  48. <Structure open="exec" close="endexec" header="1" sent_start="0"/>
  49. <Structure open="define" close="end-of-definition" has_name="1" separator="1" header="0" sent_start="1"/>
  50. <Structure open="provide" close="endprovide" header="1" sent_start="1"/>
  51. <Structure open="select" close="endselect" header="1" sent_start="1">
  52. <open-exception-follows value="single"/>
  53. <open-exception-contains value="into table"/>
  54. </Structure>
  55. <Structure open="begin" close="end" header="0"/>
  56. <Structure open="enhancement" close="endenhancement" header="0" has_name="1" separator="1" sent_start="1"/>
  57. <Structure open="enhancement-section" close="end-enhancement-section" header="0" has_name="1" separator="1" sent_start="1"/>
  58. <Structure open="seam" close="endseam" header="1" sent_start="1"/>
  59. <Structure open="inject" close="endinject" header="1" sent_start="1"/>
  60. <Structure open="for" close="endfor" header="1" sent_start="1"/>
  61. </STRUCTURES>
  62. <FORMAT>
  63. <DefaultIndent>2</DefaultIndent>
  64. <ResetFormatSymbols>,</ResetFormatSymbols>
  65. <FormatWords>
  66. <FormatWord word="data" indent="6" next_line="1"/>
  67. <FormatWord word="field-symbols" indent="15" next_line="1"/>
  68. <FormatWord word="importing" indent="2" next_line="1"/>
  69. <FormatWord word="exporting" indent="2" next_line="1"/>
  70. <FormatWord word="changing" indent="2" next_line="1"/>
  71. <FormatWord word="exceptions" indent="2" next_line="1"/>
  72. <FormatWord word="tables" indent="2" next_line="1"/>
  73. <FormatWord word="using" indent="6" next_line="1"/>
  74. <FormatWord word="elseif" indent="-2"/>
  75. <FormatWord word="binding" indent="2" next_line="1"/>
  76. </FormatWords>
  77. </FORMAT>
  78. <SYNTAXINFO>
  79. <InfoType id="1" name="Compiler error" clr="-1"/>
  80. <InfoType id="2" name="Performance tip" clr="-1"/>
  81. <InfoType id="3" name="Syntax tip" clr="-1"/>
  82. <InfoType id="4" name="Spelling error" clr="-1"/>
  83. </SYNTAXINFO>
  84. <FILTERICONCAPTION>
  85. <IconIndex id="0" name="Bold"/>
  86. <IconIndex id="1" name="Public"/>
  87. <IconIndex id="2" name="Protected"/>
  88. <IconIndex id="3" name="Private"/>
  89. <IconIndex id="4" name="Class"/>
  90. <IconIndex id="5" name="Variable"/>
  91. <IconIndex id="6" name="Constant"/>
  92. <IconIndex id="7" name="Structure"/>
  93. <IconIndex id="8" name="Function"/>
  94. <IconIndex id="9" name="Type"/>
  95. <IconIndex id="10" name="Method"/>
  96. <IconIndex id="11" name="Keyword"/>
  97. <IconIndex id="12" name="Regular"/>
  98. <IconIndex id="13" name="Screen"/>
  99. <IconIndex id="14" name="Include"/>
  100. <IconIndex id="15" name="Application"/>
  101. <IconIndex id="16" name="Table"/>
  102. <IconIndex id="17" name="Attribute"/>
  103. <IconIndex id="18" name="Relation"/>
  104. <IconIndex id="19" name="Event"/>
  105. </FILTERICONCAPTION>
  106. <COLORSYNTAX>
  107. <TextType id="8" name="Breakpoint" d/>
  108. <TextType id="10" name="Changed indicator" d/>
  109. <TextType id="11" name="Changed and saved indicator" d/>
  110. <TextType id="5" name="Current line" d/>
  111. <TextType id="6" name="Erroneous line" d/>
  112. <TextType id="7" name="Execution" d/>
  113. <TextType id="3" name="Inactive selected text" d/>
  114. <TextType id="4" name="Line number" d/>
  115. <TextType id="13" name="Maximum line length" d/>
  116. <TextType id="2" name="Selected text" d/>
  117. <TextType id="1" name="Selection margin" d/>
  118. <TextType id="21" name="Text highlights" bold="1" italic="0" underline="0" clr="16777215" bkclr="-1"/>
  119. <TextType id="22" name="Text highlights error" bold="1" italic="0" underline="0" clr="255" bkclr="-1"/>
  120. <TextType id="30" name="Normal" d/>
  121. <TextType id="9" name="Read-only mode" d/>
  122. <TextType id="31" name="Comments" d>
  123. <FirstChar>*</FirstChar>
  124. <Conditions>
  125. <Condition start="&quot;" end="\n"/>
  126. </Conditions>
  127. </TextType>
  128. <TextType id="52" name="Keywords" ImageIdx="13" bold="0" italic="0" underline="0" clr="13688896" bkclr="-1">
  129. <Keywords>
  130. <Keyword text="Class-pool"/>
  131. <Keyword text="Function-pool"/>
  132. <Keyword text="Include"/>
  133. <Keyword text="Interface-pool"/>
  134. <Keyword text="Program"/>
  135. <Keyword text="Report"/>
  136. <Keyword text="Type-pool"/>
  137. <Keyword text="bound"/>
  138. <Keyword text="Class"/>
  139. <Keyword text="Class-data"/>
  140. <Keyword text="Class-events"/>
  141. <Keyword text="Class-methods"/>
  142. <Keyword text="Constants"/>
  143. <Keyword text="Contexts"/>
  144. <Keyword text="Data"/>
  145. <Keyword text="Definition"/>
  146. <Keyword text="Endclass"/>
  147. <Keyword text="Endinterface"/>
  148. <Keyword text="Enhancement"/>
  149. <Keyword text="Endenhancement"/>
  150. <Keyword text="Enhancement-section"/>
  151. <Keyword text="End-enhancement-section"/>
  152. <Keyword text="Events"/>
  153. <Keyword text="Field-groups"/>
  154. <Keyword text="Field-symbols"/>
  155. <Keyword text="Implementation"/>
  156. <Keyword text="Interface"/>
  157. <Keyword text="Interfaces"/>
  158. <Keyword text="Local"/>
  159. <Keyword text="Methods"/>
  160. <Keyword text="Parameters"/>
  161. <Keyword text="Private"/>
  162. <Keyword text="Protected"/>
  163. <Keyword text="Public"/>
  164. <Keyword text="Ranges"/>
  165. <Keyword text="Section"/>
  166. <Keyword text="Selection-screen"/>
  167. <Keyword text="Select-options"/>
  168. <Keyword text="Static"/>
  169. <Keyword text="Statics"/>
  170. <Keyword text="spots"/>
  171. <Keyword text="Type-pools"/>
  172. <Keyword text="Types"/>
  173. <Keyword text="During "/>
  174. <Keyword text="End-of-page"/>
  175. <Keyword text="End-of-selection"/>
  176. <Keyword text="Initialization"/>
  177. <Keyword text="Line-selection"/>
  178. <Keyword text="Line-selection"/>
  179. <Keyword text="Load-of-program"/>
  180. <Keyword text="Selection-screen"/>
  181. <Keyword text="Start-of-selection"/>
  182. <Keyword text="Top-of-page"/>
  183. <Keyword text="User-command"/>
  184. <Keyword text="and"/>
  185. <Keyword text="assigned"/>
  186. <Keyword text="At"/>
  187. <Keyword text="Begin"/>
  188. <Keyword text="between"/>
  189. <Keyword text="binding"/>
  190. <Keyword text="block"/>
  191. <Keyword text="byte-ca"/>
  192. <Keyword text="byte-cn"/>
  193. <Keyword text="byte-co"/>
  194. <Keyword text="byte-cs"/>
  195. <Keyword text="byte-na"/>
  196. <Keyword text="byte-ns"/>
  197. <Keyword text="Ca"/>
  198. <Keyword text="Call"/>
  199. <Keyword text="Case"/>
  200. <Keyword text="Catch"/>
  201. <Keyword text="Change"/>
  202. <Keyword text="Check"/>
  203. <Keyword text="Cleanup"/>
  204. <Keyword text="cn"/>
  205. <Keyword text="co"/>
  206. <Keyword text="Continue"/>
  207. <Keyword text="cp"/>
  208. <Keyword text="cs"/>
  209. <Keyword text="Define"/>
  210. <Keyword text="Do"/>
  211. <Keyword text="Each"/>
  212. <Keyword text="Else"/>
  213. <Keyword text="Elseif"/>
  214. <Keyword text="End"/>
  215. <Keyword text="Endat"/>
  216. <Keyword text="Endcase"/>
  217. <Keyword text="Enddo"/>
  218. <Keyword text="Endexec"/>
  219. <Keyword text="Endfor"/>
  220. <Keyword text="Endform"/>
  221. <Keyword text="Endfunction"/>
  222. <Keyword text="Endif"/>
  223. <Keyword text="Endloop"/>
  224. <Keyword text="Endmethod"/>
  225. <Keyword text="Endmodule"/>
  226. <Keyword text="End-of-definition"/>
  227. <Keyword text="Endon"/>
  228. <Keyword text="Endprovide"/>
  229. <Keyword text="Endselect"/>
  230. <Keyword text="Endtry"/>
  231. <Keyword text="Endwhile"/>
  232. <Keyword text="eq"/>
  233. <Keyword text="Exec"/>
  234. <Keyword text="Exit"/>
  235. <Keyword text="first"/>
  236. <Keyword text="Form"/>
  237. <Keyword text="Function"/>
  238. <Keyword text="ge"/>
  239. <Keyword text="gt"/>
  240. <Keyword text="If"/>
  241. <Keyword text="in"/>
  242. <Keyword text="initial"/>
  243. <Keyword text="is"/>
  244. <Keyword text="last"/>
  245. <Keyword text="le"/>
  246. <Keyword text="Leave"/>
  247. <Keyword text="Loop"/>
  248. <Keyword text="lt"/>
  249. <Keyword text="M"/>
  250. <Keyword text="Method"/>
  251. <Keyword text="Module"/>
  252. <Keyword text="na"/>
  253. <Keyword text="ne"/>
  254. <Keyword text="new"/>
  255. <Keyword text="not"/>
  256. <Keyword text="np"/>
  257. <Keyword text="ns"/>
  258. <Keyword text="o"/>
  259. <Keyword text="of"/>
  260. <Keyword text="On"/>
  261. <Keyword text="or"/>
  262. <Keyword text="Perform"/>
  263. <Keyword text="Provide"/>
  264. <Keyword text="requested"/>
  265. <Keyword text="Return"/>
  266. <Keyword text="screen"/>
  267. <Keyword text="Select"/>
  268. <Keyword text="Sql"/>
  269. <Keyword text="Stop"/>
  270. <Keyword text="supplied"/>
  271. <Keyword text="transaction"/>
  272. <Keyword text="Try"/>
  273. <Keyword text="When"/>
  274. <Keyword text="While"/>
  275. <Keyword text="z"/>
  276. <Keyword text="Abs"/>
  277. <Keyword text="Abs"/>
  278. <Keyword text="Abs"/>
  279. <Keyword text="Acos"/>
  280. <Keyword text="Add"/>
  281. <Keyword text="Add-corresponding"/>
  282. <Keyword text="Adjacent"/>
  283. <Keyword text="Aliases"/>
  284. <Keyword text="all"/>
  285. <Keyword text="Analyzer"/>
  286. <Keyword text="Any"/>
  287. <Keyword text="Append"/>
  288. <Keyword text="appending"/>
  289. <Keyword text="as"/>
  290. <Keyword text="ascending"/>
  291. <Keyword text="Asin"/>
  292. <Keyword text="Assign"/>
  293. <Keyword text="assigning"/>
  294. <Keyword text="Assert"/>
  295. <Keyword text="Atan"/>
  296. <Keyword text="Authority-check"/>
  297. <Keyword text="Avg"/>
  298. <Keyword text="Back"/>
  299. <Keyword text="BAdi"/>
  300. <Keyword text="binary"/>
  301. <Keyword text="Bit"/>
  302. <Keyword text="Bit-and"/>
  303. <Keyword text="Bit-not"/>
  304. <Keyword text="Bit-or"/>
  305. <Keyword text="Bit-xor"/>
  306. <Keyword text="Blank"/>
  307. <Keyword text="Bound"/>
  308. <Keyword text="Break-point"/>
  309. <Keyword text="buffer"/>
  310. <Keyword text="by"/>
  311. <Keyword text="c"/>
  312. <Keyword text="case"/>
  313. <Keyword text="Ceil"/>
  314. <Keyword text="Centered"/>
  315. <Keyword text="changing"/>
  316. <Keyword text="Charlen"/>
  317. <Keyword text="Checkbox"/>
  318. <Keyword text="Clear"/>
  319. <Keyword text="client"/>
  320. <Keyword text="Close"/>
  321. <Keyword text="Cnt"/>
  322. <Keyword text="Code"/>
  323. <Keyword text="Collect"/>
  324. <Keyword text="color"/>
  325. <Keyword text="col_negative"/>
  326. <Keyword text="col_normal"/>
  327. <Keyword text="Comment"/>
  328. <Keyword text="Commit"/>
  329. <Keyword text="Communication"/>
  330. <Keyword text="comparing"/>
  331. <Keyword text="component"/>
  332. <Keyword text="Compute"/>
  333. <Keyword text="Concatenate"/>
  334. <Keyword text="Condense"/>
  335. <Keyword text="Control"/>
  336. <Keyword text="Controls"/>
  337. <Keyword text="Convert"/>
  338. <Keyword text="Copy"/>
  339. <Keyword text="Cos"/>
  340. <Keyword text="Cosh"/>
  341. <Keyword text="Count"/>
  342. <Keyword text="Country"/>
  343. <Keyword text="Create"/>
  344. <Keyword text="Currency"/>
  345. <Keyword text="Cursor"/>
  346. <Keyword text="Customer-function"/>
  347. <Keyword text="Database"/>
  348. <Keyword text="Dataset"/>
  349. <Keyword text="date"/>
  350. <Keyword text="Dbmaxlen"/>
  351. <Keyword text="Decimals"/>
  352. <Keyword text="default"/>
  353. <Keyword text="Delete"/>
  354. <Keyword text="Demand"/>
  355. <Keyword text="descending"/>
  356. <Keyword text="Describe"/>
  357. <Keyword text="Detail"/>
  358. <Keyword text="Dialog"/>
  359. <Keyword text="Distinct"/>
  360. <Keyword text="Div"/>
  361. <Keyword text="Divide"/>
  362. <Keyword text="Divide-corresponding"/>
  363. <Keyword text="duplicates"/>
  364. <Keyword text="Dynpro"/>
  365. <Keyword text="Edit"/>
  366. <Keyword text="Editor-call"/>
  367. <Keyword text="encoding"/>
  368. <Keyword text="equal"/>
  369. <Keyword text="Event"/>
  370. <Keyword text="Exceptions"/>
  371. <Keyword text="excluding"/>
  372. <Keyword text="Exp"/>
  373. <Keyword text="Exponent"/>
  374. <Keyword text="Export"/>
  375. <Keyword text="exporting"/>
  376. <Keyword text="Extended"/>
  377. <Keyword text="Extract"/>
  378. <Keyword text="Fetch"/>
  379. <Keyword text="Field"/>
  380. <Keyword text="Fields"/>
  381. <Keyword text="Find"/>
  382. <Keyword text="Floor"/>
  383. <Keyword text="for"/>
  384. <Keyword text="Format"/>
  385. <Keyword text="Frac"/>
  386. <Keyword text="frame"/>
  387. <Keyword text="Free"/>
  388. <Keyword text="from"/>
  389. <Keyword text="Generate"/>
  390. <Keyword text="Get"/>
  391. <Keyword text="greater"/>
  392. <Keyword text="Group"/>
  393. <Keyword text="handler"/>
  394. <Keyword text="hashed"/>
  395. <Keyword text="header"/>
  396. <Keyword text="help-id"/>
  397. <Keyword text="Help-request"/>
  398. <Keyword text="Hide"/>
  399. <Keyword text="Hotspot"/>
  400. <Keyword text="i"/>
  401. <Keyword text="Icon"/>
  402. <Keyword text="id"/>
  403. <Keyword text="Import"/>
  404. <Keyword text="importing"/>
  405. <Keyword text="index"/>
  406. <Keyword text="Infotypes"/>
  407. <Keyword text="Inheriting"/>
  408. <Keyword text="Input"/>
  409. <Keyword text="Insert"/>
  410. <Keyword text="intensified"/>
  411. <Keyword text="into"/>
  412. <Keyword text="Inverse"/>
  413. <Keyword text="Iterator"/>
  414. <Keyword text="Join"/>
  415. <Keyword text="key"/>
  416. <Keyword text="Language"/>
  417. <Keyword text="Leading"/>
  418. <Keyword text="left"/>
  419. <Keyword text="left-justified"/>
  420. <Keyword text="less"/>
  421. <Keyword text="Like"/>
  422. <Keyword text="Line"/>
  423. <Keyword text="Line-count"/>
  424. <Keyword text="Lines"/>
  425. <Keyword text="Line-size"/>
  426. <Keyword text="List-processing"/>
  427. <Keyword text="Load"/>
  428. <Keyword text="lower"/>
  429. <Keyword text="Locale"/>
  430. <Keyword text="Log"/>
  431. <Keyword text="Log10"/>
  432. <Keyword text="Margin"/>
  433. <Keyword text="Mask"/>
  434. <Keyword text="Matchcode"/>
  435. <Keyword text="Max"/>
  436. <Keyword text="memory"/>
  437. <Keyword text="Mesh"/>
  438. <Keyword text="Message"/>
  439. <Keyword text="Message-id"/>
  440. <Keyword text="Min"/>
  441. <Keyword text="Mod"/>
  442. <Keyword text="mode"/>
  443. <Keyword text="Modify"/>
  444. <Keyword text="Move"/>
  445. <Keyword text="Move-corresponding"/>
  446. <Keyword text="Multiply"/>
  447. <Keyword text="Multiply-corresponding"/>
  448. <Keyword text="New-line"/>
  449. <Keyword text="New-page"/>
  450. <Keyword text="Next"/>
  451. <Keyword text="no "/>
  452. <Keyword text="nodes"/>
  453. <Keyword text="No-gap"/>
  454. <Keyword text="No-heading"/>
  455. <Keyword text="Non-unique"/>
  456. <Keyword text="No-scrolling"/>
  457. <Keyword text="No-sign"/>
  458. <Keyword text="No-title"/>
  459. <Keyword text="No-zero"/>
  460. <Keyword text="number"/>
  461. <Keyword text="Numofchar"/>
  462. <Keyword text="occurs"/>
  463. <Keyword text="occurrences"/>
  464. <Keyword text="Open"/>
  465. <Keyword text="optional"/>
  466. <Keyword text="order"/>
  467. <Keyword text="others"/>
  468. <Keyword text="Output"/>
  469. <Keyword text="Overlay"/>
  470. <Keyword text="Pack"/>
  471. <Keyword text="Page"/>
  472. <Keyword text="Parameter"/>
  473. <Keyword text="Pf-status"/>
  474. <Keyword text="places"/>
  475. <Keyword text="position"/>
  476. <Keyword text="Print"/>
  477. <Keyword text="Print-control"/>
  478. <Keyword text="Property"/>
  479. <Keyword text="Put"/>
  480. <Keyword text="Radiobutton"/>
  481. <Keyword text="Raise"/>
  482. <Keyword text="Raising"/>
  483. <Keyword text="Read"/>
  484. <Keyword text="Receive"/>
  485. <Keyword text="redefinition"/>
  486. <Keyword text="ref"/>
  487. <Keyword text="reference"/>
  488. <Keyword text="Refresh"/>
  489. <Keyword text="Reject"/>
  490. <Keyword text="Replace"/>
  491. <Keyword text="Reserve"/>
  492. <Keyword text="Reset"/>
  493. <Keyword text="right-justified"/>
  494. <Keyword text="Rollback"/>
  495. <Keyword text="Round"/>
  496. <Keyword text="rows"/>
  497. <Keyword text="Rtti"/>
  498. <Keyword text="Run"/>
  499. <Keyword text="Scan"/>
  500. <Keyword text="Scroll"/>
  501. <Keyword text="Scroll-boundary"/>
  502. <Keyword text="Search"/>
  503. <Keyword text="Selection-table"/>
  504. <Keyword text="Selector"/>
  505. <Keyword text="separated"/>
  506. <Keyword text="Set"/>
  507. <Keyword text="shared"/>
  508. <Keyword text="Shift"/>
  509. <Keyword text="Sign"/>
  510. <Keyword text="Sin"/>
  511. <Keyword text="single"/>
  512. <Keyword text="Sinh"/>
  513. <Keyword text="Size"/>
  514. <Keyword text="Skip"/>
  515. <Keyword text="Sort"/>
  516. <Keyword text="sorted"/>
  517. <Keyword text="Specified"/>
  518. <Keyword text="Split"/>
  519. <Keyword text="Sqrt"/>
  520. <Keyword text="Stamp"/>
  521. <Keyword text="standard"/>
  522. <Keyword text="starting"/>
  523. <Keyword text="Strlen"/>
  524. <Keyword text="Structure"/>
  525. <Keyword text="Submit"/>
  526. <Keyword text="Subtract"/>
  527. <Keyword text="Subtract-corresponding"/>
  528. <Keyword text="Sum"/>
  529. <Keyword text="Summary"/>
  530. <Keyword text="Supply"/>
  531. <Keyword text="Suppress"/>
  532. <Keyword text="Symbol"/>
  533. <Keyword text="Syntax-check"/>
  534. <Keyword text="Syntax-trace"/>
  535. <Keyword text="System-call"/>
  536. <Keyword text="System-exceptions"/>
  537. <Keyword text="table"/>
  538. <Keyword text="Tables"/>
  539. <Keyword text="Tan"/>
  540. <Keyword text="Tanh"/>
  541. <Keyword text="task"/>
  542. <Keyword text="Text"/>
  543. <Keyword text="Textpool"/>
  544. <Keyword text="Time"/>
  545. <Keyword text="times"/>
  546. <Keyword text="title"/>
  547. <Keyword text="Titlebar"/>
  548. <Keyword text="to"/>
  549. <Keyword text="Transfer"/>
  550. <Keyword text="Translate"/>
  551. <Keyword text="transporting"/>
  552. <Keyword text="Trunc"/>
  553. <Keyword text="type"/>
  554. <Keyword text="Uline"/>
  555. <Keyword text="under"/>
  556. <Keyword text="unique"/>
  557. <Keyword text="Unit"/>
  558. <Keyword text="Unpack"/>
  559. <Keyword text="up"/>
  560. <Keyword text="Update"/>
  561. <Keyword text="upper"/>
  562. <Keyword text="using"/>
  563. <Keyword text="value"/>
  564. <Keyword text="Value-request"/>
  565. <Keyword text="Wait"/>
  566. <Keyword text="Where"/>
  567. <Keyword text="Window"/>
  568. <Keyword text="with"/>
  569. <Keyword text="With-title"/>
  570. <Keyword text="Work"/>
  571. <Keyword text="Write"/>
  572. <Keyword text="x"/>
  573. <Keyword text="xor"/>
  574. <Keyword text="Xstrlen"/>
  575. <Keyword text="zone"/>
  576. </Keywords>
  577. </TextType>
  578. <TextType id="32" name="Numbers" d/>
  579. <TextType id="55" name="Operators" ImageIdx="12" bold="0" italic="0" underline="0" clr="16777215" bkclr="-1">
  580. <Separators>
  581. <Separator text="."/>
  582. <Separator text=":"/>
  583. <Separator text=","/>
  584. <Separator text="("/>
  585. <Separator text=")"/>
  586. </Separators>
  587. <Keywords>
  588. <Keyword text="="/>
  589. <Keyword text="=?"/>
  590. </Keywords>
  591. </TextType>
  592. <TextType id="33" name="Strings" d>
  593. <FirstChar/>
  594. <Conditions>
  595. <Condition start="'" end="'"/>
  596. <Condition start="`" end="`"/>
  597. </Conditions>
  598. </TextType>
  599. <TextType id="40" name="Syntactical error" d/>
  600. <TextType id="70" name="Token operator" bold="0" italic="0" underline="0" clr="8421504" bkclr="-1">
  601. <Separators>
  602. <Separator text="-"/>
  603. <Separator text="-&gt;"/>
  604. <Separator text="=&gt;"/>
  605. <Separator text="~"/>
  606. </Separators>
  607. </TextType>
  608. <TextType id="20" name="User region" d>
  609. <Conditions>
  610. <Condition start="&quot;$." end="\n"/>
  611. </Conditions>
  612. </TextType>
  613. </COLORSYNTAX>
  614. </XMLConfigSettings>

2. abap_user.xml

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="lang_user.xslt"?>
  3. <XMLConfigSettings>
  4. <FILEINFO>
  5. <Author>Mr Black</Author>
  6. <Type>LangUser</Type>
  7. <Language>ABAP</Language>
  8. <Desc>User specific settings for ABAP</Desc>
  9. </FILEINFO>
  10. <EXPANDS>
  11. <Expand key="case">
  12. <Descr>Case (§)</Descr>
  13. <Text>CASE |.\nWHEN .\nWHEN .\nWHEN OTHERS.\nENDCASE.</Text>
  14. </Expand>
  15. <Expand key="region">
  16. <Descr>Region (§)</Descr>
  17. <Text>"$. Region %Region Name%\n%SurroundedText%\n"$. Endregion %Region Name%</Text>
  18. </Expand>
  19. <Expand key="loop">
  20. <Descr>Loop (§)</Descr>
  21. <Text>LOOP AT |.\n%SurroundedText%\nENDLOOP.</Text>
  22. </Expand>
  23. <Expand key="define">
  24. <Descr>Define (§)</Descr>
  25. <Text>DEFINE |.\n%SurroundedText%\nEND-OF-DEFINITION.</Text>
  26. </Expand>
  27. <Expand key="try">
  28. <Descr>Try (§)</Descr>
  29. <Text>TRY |.\n%SurroundedText%\nCATCH .\n\nENDTRY.</Text>
  30. </Expand>
  31. <Expand key="*--">
  32. <Descr>*-------...</Descr>
  33. <Text>*--------------------------------------------------------------------*</Text>
  34. </Expand>
  35. <Expand key="ife">
  36. <Descr>If (§) Else</Descr>
  37. <Text>IF |.\n%SurroundedText%\nELSE.\n\nENDIF.</Text>
  38. </Expand>
  39. <Expand key="while">
  40. <Descr>While (§)</Descr>
  41. <Text>WHILE |.\n%SurroundedText%\nENDWHILE.</Text>
  42. </Expand>
  43. <Expand key="***">
  44. <Descr>***.....</Descr>
  45. <Text>**********************************************************************</Text>
  46. </Expand>
  47. <Expand key="if">
  48. <Descr>If (§)</Descr>
  49. <Text>IF |.\n%SurroundedText%\nENDIF.</Text>
  50. </Expand>
  51. <Expand key="do">
  52. <Descr>Do (§)</Descr>
  53. <Text>DO | TIMES.\n%SurroundedText%\nENDDO.</Text>
  54. </Expand>
  55. </EXPANDS>
  56. </XMLConfigSettings>

Create a backup of your original files if you ever want to reset it and copy these files into

C:\Users\[[YOUR USER]]\AppData\Roaming\SAP\SAP GUI\ABAP Editor\

Above code  does the color setup for your editor. After you copied those, you can start SAPgui again, open any program using SE38 and you’ll see the new colors.

Change your font to Consolas :smile: Enjoy

3 Comments