Notepad ++

Regexp for searching functions

    //line containing 'function(' not starting with '}/'
    ^(?!(.*)\}\/)(.*)function(.+)()

better one

^(?!(.*)\}?\/\*?)([^$\n]*)function(.+)\(
// note: avoid using comments //or /* after 'function'

Adding Line numbers

ALT + C

Column Editor:

Column Editor (Alt + C) provides a way to insert line numbers. Options exist to choose the starting number, interval, and how often each number should be repeated. Place the cursor on the first position of the first line and increment by one to mimic the actual line numbers.