Skip to Content

SAP

NetWeaver Identity Management, IdM, offers a built-in script editor which can be replaced easily by another

editor of your choice. Notepad++ is a very nice and handy text editor which offer syntax highlighting.

This blog

describes how to activate Notepad++ as the script editor for IdM http://www.sdn.sap.com/irj/sdn/nw-identitymanagement (assuming that the program is already installed) and how to enable syntax highlighting for IdM scripts using a specific

language file.

Here you
see the result showing Javascript keywords (blue), constants (red), variables
(black), comments (grey) and in addition IdM internal functions (green) and IdM
global scripts (orange):

Syntax highlighting with Notepad++

 

1. Step: Activate Notepad++ as script editor in IdM

Enter the
path to the Notepad++ program at “Tools->Options->Script editor” in the Identity Center:

Activate Notepad++ as script editor

</p>

2. Step: Download and prepare the Notepad++

language definition file

Navigate to

the Notepad++ language file page and download the file

userDefineLang_SAP_IdM_7.1.xml

which is labeled as “SAP NetWeaver IdM
language”.

(Currently
I’ve prepared a language file which is optimized for IdM release 7.1. I plan, to publish another file
for release 7.2, too.)

If you
don’t have an

userDefineLang.xml

file already, you can drop this file among

your other configuration file, in the Notepad++ Install Folder. It should be renamed

Language selection in Notepad++

The
correct language gets automatically selected while opening a script in IdM.
Technically IdM uses the

.vbs

file extension even if the file content is
Javascript.  

3. Have fun

… and eyjoy better reading of IdM scripts.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Matt Pollicove
    Frank,

    Thanks for bringing this up.  It’s an old feature of Identity Center and one that few employ.  The reason I don’t deploy or recommend it is that when you use an external editor, you loose the ability to easily access the build in Identity Center functions.  I suppose one could create a plug in for Notepad++.  Guess that’s something to think about now.

    Matt

    PS — I do recommend and use Notepad ++ as a troubleshooting tool by doing cut and paste!

    (0) 

Leave a Reply