Dave,
This can be done by yourself!
Steps:
- Close the Studio
- Open the DataFlex.Lng file in the Lib folder
- Add a new tokeset element (e.g. copy the "Line Comments" one)
- Assign a name like "Remarks"
- Assign a color
- Change the token value
- Save the file
- Open the Studio
- Go to editor properties to see whether the addition was picked up correctly
Example tokenset I added:
Code:
<tokenset name="Remarks" id="rem" forecolor="#e64812" type="scope">
<validscope name=""/>
<validscope name="Scope Keywords"/>
<validscope name="Definitions Block"/>
<validscope name="Parameter Block"/>
<validscope name="Include File"/>
<tokens>
<token>#REM</token>
</tokens>
</tokenset>
The forecolor is not picked up from the .LNG file but instead stored in the registry (Computer\HKEY_CURRENT_USER\Software\Data Access Worldwide\DataFlex Tools\19.1\Studio\Code-Editor). In my case it contained:
Code:
[HKEY_CURRENT_USER\Software\Data Access Worldwide\DataFlex Tools\19.1\Studio\Code-Editor]
"DataFlex_Remarks_ForeColor"=dword:001248e6
"DataFlex_Remarks_BackColor"=dword:00c0c0c0
"DataFlex_Remarks_FontStyle"=dword:00000001
This marks a #REM line in our Data Access orange color on a silver background bold printed.