Solved

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

Posted on 2014-09-11
9
115 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

724 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