By GabSoftware
If you want to add support for Progress ABL 4GL in Sublime Text, you can use this syntax plugin.
A ready-to-install package is located in the dist
directory.
- Zip the content of the OpenEdge ABL.sublime-package directory (not the directory itself)
- Rename the archive to "OpenEdge ABL.sublime-package" (without .zip in the end of the file name)
- Close Sublime Text if necessary
- Locate the data directory of Sublime Text 3 :
- On Windows, it is located in
%APPDATA%\Sublime Text 3
- On Linux, it is located in
~/.config/sublime-text-3
- On OS X, it is located in
~/Library/Application Support/Sublime Text 3
- On Windows, it is located in
- In the data directory, place the package
OpenEdge ABL.sublime-package
in theInstalled Packages
directory. - In the data directory (but in
%LOCALAPPDATA%\Sublime Text 3
in Windows!), delete theCache/OpenEdge ABL
directory - Restart Sublime Text
- You may need to open each progress file type (.p, .cls, .i, .w...) and associate them with the new syntax scheme:
View > Syntax > Open all with current extension as... > OpenEdge ABL
Note: this isonly available starting from Progress 11.x
It is possible to get the "Check Syntax,Compile,Run" feature of OpenEdge working in Sublime Text. To do so, you can follow these steps :
- Makes sure you have saved your project, this creates a <project_name>.sublime-project
- Update your <project_name>.sublime-project to add the settings.abl node
{
"folders":
[
{
"path": "."
}
],
"settings":
{
"abl":
{
"dlc": "/path/to/dlc", // Path to your DLC
"hooks":
{
"pre": "/code/to/run/pre.p" // This code will be run before compile,checking syntax or running but after propath bellow has been set
},
"pf": "conf/sublime.pf", // this path can be fully qualified or relative to the sublime-project file
"propath":
[
"src/module1", // these paths can be fully qualified or relative to the sublime-project file
"src/module2"
],
"db": [
"-db /path/to/db -ld somedb -1", // DB connection strings
"-db /path/to/db2 -ld somedb2 -1"
],
"uppercase_keywords": true // Do you want sublime to capitalize ABL Keywords
}
}
}
- Hitting CTRL + SHIFT + B will give you a list
- ABL : checks syntax
- ABL - Check Syntax : checks syntax
- ABL - Compile : compiles
- ABL - Run Batch : runs code in an _progres -b session and returns messages to the sublime console
- ABL - Run GUI : runs the code in an prowin/32.exe
- You can now repeat your last choice by hitting CTRL + B
This doesnt work on untitled buffers in sublime, the buffer must have a filename
This product is not supported by Progress.