Skip to content

kerryshireman/dsbasic-npp-udl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataStage BASIC User Defined Language for Notepad++

Developed by Kerry Shireman.

Original Solarized color scheme developed by Ethan Schoonover mailto:[email protected].

Introduction

The IBM WebSphere DataStage BASIC editor lacks, among other things, syntax highlighting. Notepad++ 6.3 and later has a language definition feature named User Defined Language (UDL) 2.0. This project implements UDL 2.0 for DataStage BASIC. Three color schemes are included, two of which are based on the Solarized color palette by Ethan Schoonover mailto:[email protected].

For more information on Solarized, please visit the Solarized home page or the Solarized repository.

NOTE: This project is a language-specific implementation of Solarized. The Notepad++ Style Configurator already supports Solarized for its built-in languages. If you're just interested in Solarized for Notepad++, please refer to its Style Configurator documentation.

Status

These UDLs were developed for DataStage BASIC v8.5, and to my knowledge are syntax complete. If you run into issues, please open an Issue in the repository.

Requirements

  • Notepad++ 6.3 or later
  • A few minutes for installation

Contents

Three UDL color schemes are included in this distribution.

  • DSB.xml - For an out of the box Notepad++ installation
  • DSB-Solarized.xml - For those who prefer the Solarized theme
  • DSB-Solarized-l.xml - For those who prefer the Solarized Light theme

Installation

Assumptions

  1. Notepad++ is installed on your machine

All Installations

  1. Download this repository and extract
  2. In Notepad++, go to Language | Define Your Language...
  3. Go to Import..., navigate to the appropriate UDL file (e.g. DSB.xml), click Open
  4. Click the top right X button, closing the dialog window

Solarized Installations

Another step is required to set the background color for Solarized installations.

  1. Go to Setting | Style Configurator...
  2. Under Language : ensure that Global Styles is selected
  3. Under Style : ensure that Global override is selected
  4. Check the Enable global background color checkbox
  5. Using the Select theme drop down, choose the appropriate theme (see table below for help):
  6. Click Save & Close
UDL File N++ Theme
DSB-Solarized.xml Solarized
DSB-Solarized-l.xml Solarized-light

Usage

The installed UDL will be invoked automatically when opening files with a ".dsb" extension. ".dsb" isn't a DataStage BASIC convention; I just made it up during development. If you have a file extension conflict, you may invoke the UDL on a file by file basis. Here's how:

  1. Go to Language, then click the installed language name near the bottom, e.g. DSB or DSB-Solarized.

Screenshots

Click to view full size. For those interested, the font used is DejaVu Sans Mono.

###Baseline no theme

DSB

DSB

DSB-Solarized

DSB Solarized

DSB-Solarized-l

DSB Solarized Light

Changing Themes

Notepad++ may become confused when two or more UDLs are associated with the same file extension. If you already installed one of these UDLs and want to switch it out, follow these uninstallation steps before proceeding:

  1. In Notepad++, go to Language | Define Your Language...
  2. Click the User language: drop-down
  3. Select the installed language (e.g. DSB, DSB-Solarized), then click Remove.
  4. See the Installation section

Resources

Thanks

Many thanks to Ethan Schoonover for his awesome work on Solarized.

Thanks go to my colleague, Joy Stover, who encouraged me to get off my behind and do this.

About

DataStage BASIC User Defined Language for Notepad++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published