Full text search ignoring comments

I want a full-text search of my JavaScript code, but I'm usually not interested in matching comments.

How can I have a full-text search ignoring any commented match? This feature will increase my productivity as a programmer.

Also, how can I do the opposite: search only in comments?

(I use Text Mate, but I am happy to change it.)

+5
source share
4 answers

(SCSE). , langauge, ; , JavaScript. , , , "", , :

  I=*tax* '*' N

( ), '*', . , , . , (, ):

   C=*Author* 

, SCSE (, ) ; , .

, SCSE grep. , . , , . grep , (, "" "Authorization_code" ). .

, ( ) , .

+4
+1

NetBeans ( ), , , ..

JSLint , - - .

+1

Notepad ++, . , , ( ). Reg, , , / javascript-... , , , , , google " javascript" - ... Notepad ++, - "RegEx Helper", .

0

All Articles