Posts

Showing posts with the label Notepad

NotepadPB - PowerBuilder Built Notepad

Image
The latest release of Ultimate Suite introduces many new color themes that you can use to make your PowerBuilder applications look absolutely amazing. NotepadPB is a text editor built using PowerBuilder. The latest release takes advantage of the new Ultimate Suite color themes allowing you to customize your text editor using your favorite colors. If you're unfamiliar with NotepadPB; it's a simple text editor application with tons of features. What makes it special is that, unlike other text editors, you will find PowerBuilder specific features. If you open a PowerBuilder source file you get proper syntax highlighting, code folding, a code beautifier, go to definition when you right click on a function declaration, and so much more. In addition to the PowerBuilder related features, you get other things like: Tabbed navigation. Advanced find and replace indicators Language support for many popular programming languages. Tools to manipulate your text. Easily insert new GUIDs, calc...

PowerBuilder Code Beautifier / Formatter

Image
 A new code beautifier for PowerBuilder (PowerScript) code has been added to NotepadPB: https://powertothebuilder.com/NotepadPB.html This is the first and initial version which uses a very simple approach to formatting the code. NotepadPB will use multiple passes to adjust spacing, casing, and indenting of the script. The process works as follows: Start by tokenizing the script by splitting everything into words or characters (characters for things like quotes). We then loop through each token and determine if it's a keyword, datatype, quote, comment, carriage return, or user defined text (like variable names). We change the case on keywords and datatypes, and track indent level if the keyword is an indent-able keyword (e.g. IF, FOR, CHOOSE, etc). Comments and quoted text are ignored, we don't want to modify them. At the end, we reassemble our script. In our second pass, we parse our script by line. We will apply some formatting on a line by line bases. The second pass is meant...