Results 1 to 8 of 8

Thread: Show #REM #IF etc in studio code explorer optionally

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Show #REM #IF etc in studio code explorer optionally

    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.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	2020-09-25_091544.jpg 
Views:	54 
Size:	10.3 KB 
ID:	13983  
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •