RKL eSolutions Blog Trends and Insights

How to Set Up 4GL Formatting in Notepad++ for Sage X3

Many errors give a line number where the error happened. Notepad++ will show the line numbers, but the X3 editor doesn’t. This is useful for quickly opening a script and making it more readable. Eclipse is better for actually editing or debugging code, but it needs to be connected to the X3 server. This is like a quality-of-life improvement for the standard editor.
 
This is useful for anyone doing Sage X3 development or customizations.  It improves the ability to read 4GL code and identify keywords and functions. 
 
Eclipse is the standard editor, but sometimes, we don’t need to do the work needed to open and connect to it. Eclipse uses a badge and requires connectivity.
 

Steps to Set-Up 4GL Formatting in Notepad++

  1. Looking at code within Sage looks like this:

    image001
  2. You can paste that into Notepad++ but it will still be black and white until you add a user-defined language. At the top go to Language > User Defined Language > Open User Defined Language folder.

    image003
  3. Paste the files from GitHub into that User Defined Languages folder that opens. Access the GitHub files here.

    image004
  4. Restart Notepad++ and they’ll show in the list so it can be toggled on.

    image005
  5. This is how the dark mode looks with my usual setup.

    image006

    Using the 4GL formatting, you will now be able to read files easier and identify keywords and functions. 

Want More Sage X3 Features & Functions?

For videos on Sage X3, visit our YouTube page and subscribe to stay up-to-date with the latest insights and tutorials. Our channel is dedicated to providing valuable resources for businesses looking to optimize their financial management with Sage X3.

question-markCheck out these blogs to help get you started!

4 Functions to Use in the Preventive Maintenance Solution
How to Match Tolerances
How to Block Postings to a Sub-Ledger During the Period-End Process
How to Change Default Stock History Days

Tags: Sage X3
Sam Ebe

Written by Sam Ebe

With a decade of programming experience, including three years specializing in the 4GL language, Sam customizes Sage X3 to meet the specific needs of clients, ensuring their systems run smoothly. Outside of work, he enjoys rock climbing, going to concerts, and competing in fighting games.