Solved

Mark/comment items in huge vbscript (notepad++)?

Posted on 2014-09-11
9
108 Views
Last Modified: 2014-12-08
Hi,

I d need to convert/extract a lot of lines in a huge vbscript (10000 lines). Therefore I d like to mark interesting parts.
Then also it would be handy this marked lines are set together in an overview.

Howto do that, can it be done via fe notepad++?

J.
0
Comment
Question by:janhoedt
  • 4
  • 3
  • 2
9 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 40318042
The find function has a bookmark option. It will not list it together though. You can use "find all in current document", and it will group it in a lower window pane. Clicking it will jump to the clicked result line in the document.
Is this enough? If not, describe your desires steps exactly.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 40318173
Ctrl+F2 - keyboard action
click grey area to the left of the line - mouse action
Will both toggle the bookmark for a line.

Unfortunately, I don't think there's a bookmark all these lines action.

However, once you have bookmarked the lines, you can
* copy bookmarked lines to the clipboard
* invert the bookmark and cut the bookmarked lines

==================
You can create your own style and use selective collapsing and expanding to show your blocks of interest.
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 40318189
Search, Mark, checkbox bookmark, it will definitely bookmark all lines.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:janhoedt
ID: 40319157
Thanks, but I'd really need some kind of marker to mark relevant pieces. As a matter of fact, what I wanted to do is print it out, mark with a marker the pieces, write comment, then extract these comments and convert/migrate code.

That's what I want to do online, within notepad++ or another tool.
0
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40319192
In Notepad++, I created a style (under the Language menu).
On the dialog, I specified the following Folding In Code style 1 Open and Close character sequence:
'{

'}

Open in new window

I then surrounded my entire VBScript code with '{ and '}

When I wanted to carve out a segment, I would surround that sequence with '} and '{

When I collapsed everything, I was left with just the carved out sections being visible.
0
 

Author Comment

by:janhoedt
ID: 40322579
Thanks but I fail to achieve this in my notepad++
0
 
LVL 45

Expert Comment

by:aikimark
ID: 40322880
Did you follow my instructions?

What did you do?
0
 

Author Comment

by:janhoedt
ID: 40333372
I followed your instructions but it does not work for me.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 40333393
Did you follow all of the instructions?

Please tell me what steps you took.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now