WorkingScripts

The Stuff that Just Works

WorkingScripts header image 2

Notepad++ for Peoplecode and SQR

June 10th, 2009 by Iouri Chadour

There are a few people who mention different tools for Application Development in PeopleSoft. Over the past years I have tried many of the IDEs like TextPad, UltraEdit. For the past 6 months I have started extensively using Notepad++ and I absoltely love it. Unfortunately App Designer does not include a good syntax highlighting, Intellisense and other features that have been long implemented in other IDEs like Visual Studio, JBuilder, Eclipse. It seems that so far Notpad++ developers did a great job with developing enough options that the tool could be easily configured to support multiple languages, specifically SQR and PeopleCode. I have started by downloading initial syntax color scheme files from greysparling.com (they are always on the forefront of peoplesoft development). Then, I have played with options a little and voila – I finally have an IDE that makes it all easier – syntax highlighting, IntelliSense (I wish it could access AppDesigner API too). Below I would like to provide a 5 minute guide to configuring NOTEPAD++ for use:

  1. Download Notepad++ from http://notepad-plus.sourceforge.net/
  2. After install go to Settings and remove all languages that you are not using:

image image

3. Download PeopleCode and SQR syntax and Intellisense files below

a) Paste Intellisense File below

into C:\Program Files\Notepad++\plugins\APIs\

and %appdata%\Notepad++\plugins

b) Paste PeopleCode and SQR Syntax files attached below into %appdata%\Notepad++\

Download File – PeopleCode SQR Syntax Files
c) Close and restart Notepad++

4. Configure Notpad++ to recognize sqr and peoplecode by following the instructions below:

image

image

Choose the desired language e.g. Peoplecode or SQR and change the color scheme to the way you like it. For PeopleCode I suggest specifying rem and / / as start and finish of the comment, because for some reason PeopleCode has more that 2 types of comments –

/+ your comment +/

/* your comment */

rem your comment

remark your comment

Enjoy – in my next post I will explain how Notepad++ can be effectively used for looking at PeopleCode Trace files.

Tags:   · · · 14 Comments

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Leave a Comment

14 responses so far ↓

  • I cannot get this to work. The problem occurs at “Choose the desired language” – there is no choice in the User Language list other than “User Define Language”. PeopleCode does not appear the list of Languages either.

  • Hey, Mick
    Let me check my post and I will let you know, thanks for the comment

  • Mick,

    I think I might have some problems with the files I have attached – thanks to you I found the problem. Can you please try and redownload the files and then see if this helps. Again – thanks for trying this. Let me know if something does not work

  • Hi,

    I don’t understand your instructions.
    Can You tell me step by step how can I do it, please.

    galahad

  • Michal,

    Can you please be more specific. Which part is confusing for you?

  • OK
    a) Paste Intellisense File (PeopleCode.api, PeopleCode.xml ) below

    into C:\Program Files\Notepad++\plugins\APIs\
    and C:\Program Files\Notepad++\plugins -?

    b) Paste PeopleCode and SQR Syntax files attached below (UserDefinedLang.xml)
    into C:\Program Files\Notepad++\ -?

    c) ok
    4. configure backup – OK

    After that I have the same problem as Mick McHugh:

    “(…) The problem occurs at “Choose the desired language” – there is no choice in the User Language list other than “User Define Language”. PeopleCode does not appear the list of Languages either.”

  • Hey, Can you make sure that you save the Syntax file in the
    %appdata%\Notepad++\ as userDefineLang.xml There should be one in there already so move it somewhere. Let me know if this worked. The version should not be a problem I am on 5.2. If this does not work I will try and reinstall your version of notepad++ which is 5.4.x, right?

  • Yes, I have Syntax file in this folder.
    I have 5.4.3.
    Maybe I should reinstal my notepad++

  • OK, It’s working now.
    I check the %appdata%\Notepad++\
    folder and I find mistake. I paste the Syntax file into the wrong folder.

  • What is the default directory for %appdata%? I cannot get this to work.

  • NVM I found the directory.

  • If you go to Start menu –> Run , paste %appdata% and press Enter it should open the correct directory , should be something like C:\Documents and Settings\your username\Application Data

  • thank you, this is very handy.

  • Thank you – I will try to keep this up ;-)