Reprap G-Code syntax now part of RJ TextEd text editor



  • Just a note to advise that the creator of RJ TextEd has added the Reprap G-Code syntax files I created to the main program. (I am not affiliated in any way, I just happen to use it).

    RJ Text Ed

    So as of version 14.41 you can go to the new document drop-down list and select Reprap G-Code
    newfile.png

    I've tried to make auto-completion as complete and useful (to newbies) as possible by having G-Codes the object model and the correct syntax for if-else blocks etc. by also having links to the dozuki help section for that code and giving an empty if/else block etc.
    Obviously this part will have to be updated as the object model develops.
    Also I'm not used to languages which use indenting for flow control (Mainly use delphi/pascal), so can't guarantee a mistake free implementation.

    autocomp1.png autocomp2.png autocomp3.png



  • @OwenD said in Reprap G-Code syntax now part of RJ TextEd text editor:

    ust a note to advise that the creator of RJ TextEd has added the Reprap G-Code syntax files I created to the main program. (I am not affiliated in any way, I just happen to use it).
    RJ Text Ed
    So as of version 14.41 you can go to the new document drop-down list and select Reprap G-Code

    Just downloaded version 14.41 and RepRap G-Code is NOT in the dropdown list.

    RJ TextEd.png



  • EDIT:

    My mistake.
    Just did a full uninstall/reinstall.
    It seems the syntax file is not in the 14.41 download, but IS in the update file.
    The link is just below the main download.

    You THEN have to go to
    Environment >> Add-ons and select it in the list of active highlighters
    addons.png



  • You also need to go into the options and enable whatever auto completion and html link following options etc you want.

    That is to say RTFM 🤘
    options.png options2.png



  • @OwenD said in Reprap G-Code syntax now part of RJ TextEd text editor:

    EDIT:
    My mistake.
    Just did a full uninstall/reinstall.
    It seems the syntax file is not in the 14.41 download, but IS in the update file.
    The link is just below the main download.
    You THEN have to go to
    Environment >> Add-ons and select it in the list of active highlighters

    Got it Thanks.



  • I have added some new object model items to the code completion syntax file and also added mouse-over hints for most GCode commands and object model functions.

    Requires RJ Texted version 14.5 beta 1 or later for hints to work!

    Updated syntax file is here

    Some video here

    Screen shots
    mod() code completion
    highlight1.jpg

    Mod() hint mouse-over
    highlight2.jpg



  • I have updated the syntax file for RJ TextEd to include more object model items.
    I have also included a suggested colour format file.
    You will need to update RJ TextEd to the latest version in order to take advantage of hints etc.

    Download here

    Replace the existing files (reprap.syx, reprap.ini) in C:\Users"yourname"\AppData\Roaming\RJ TextEd\Syntax
    Copy the file "Reprap Dark.xml" to C:\Users"yourname"\AppData\Roaming\RJ TextEd\Syntax color themes\

    To install.
    1: Go to ENVIRONMENT > THEMES > CUSTOMISE
    step1.png

    2: Select "Reprap G Code" from the drop down list of highlighters
    step2.png

    3: Click the button, and select import colors from file
    step3.png

    4: Select the "Reprap Dark.xml" file previously copied.

    You can customize the colours to suit yourself.
    Different G Code parameters such as X, Y, Z , E, F, G etc can be coloured to make individually.
    Likewise, comments and other items can be individually coloured.
    colors.png


Log in to reply