Skip to content

gabsoftware/progress-abl-4gl-sublime-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Progress ABL 4GL support for Sublime Text 3

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.

Building

  1. Zip the content of the OpenEdge ABL.sublime-package directory (not the directory itself)
  2. Rename the archive to "OpenEdge ABL.sublime-package" (without .zip in the end of the file name)

Installing or modifying

  1. Close Sublime Text if necessary
  2. 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
  3. In the data directory, place the package OpenEdge ABL.sublime-package in the Installed Packages directory.
  4. In the data directory (but in %LOCALAPPDATA%\Sublime Text 3 in Windows!), delete the Cache/OpenEdge ABL directory
  5. Restart Sublime Text
  6. 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

"Check Syntax,Compile,Run" support with auto capitalization of keywords

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 :

  1. Makes sure you have saved your project, this creates a <project_name>.sublime-project
  2. 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  
			}  
		}  
	}
  1. 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
  2. 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

Notes

This product is not supported by Progress.

Releases

No releases published

Packages

No packages published