Capitalisation command or macro ?

Matthijs van Aalten matthijs.van.aalten at nxp.com
Tue May 26 08:27:41 CEST 2009


> Nedit comrades,
> I have to capitalise a pile of text  - massive list of book titles, eg
> "night of the living dead" goes to 'Night Of The Living Dead". I was sure
> nedit had this built in but just can't find it. Help appreciated.

I'm not sure if you like a solution like this, but try:
- Menu => Search => Replace...
- String to find: <\l+>
  (so left-pointy-bracket, backslash, lower-case letter L, plus-sign and right-pointy-bracket)
- Replace With: \u&
  (so backslach, lower-case letter U, ampersand)
- Toggle-buttons: Regular Expression on, all others off
- Hit 'Replace all in: Window'...

This should capitalize all first letters of all words in your current editing window.

Good luck,
Matthijs


More information about the Discuss mailing list