Solved

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

Posted on 2014-09-11
9
107 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
 

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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to dynamically set the form action using jQuery.

910 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

24 Experts available now in Live!

Get 1:1 Help Now