Jump to content

How do I print collapsed reigons COLLAPSED?


Recommended Posts

So, I get this nice script... thousands of lines long... I open it in the editor (SciTE Version 1.74)

I collapse all of the code into big chunks (-) (+) in the margin

I actually get it down to 2 managable pages...

THIS, I can afford to print in color... so I do

and get a cup of coffee (MAJOR MISTAKE ON MY PART)

I come back in 10 minutes to find a FAT stack of full color code... (Expensive!)

looks like SciTE is expanding when it prints...

I tried to cut&paste... if I do that on a collapsed reigon, you get the "hidden" code that way too...

Howintheheck do I get JUST the visible bits to print? (thinking "Print the collapsed reigons?" checkbox in C#)

Everseeker

Link to comment
Share on other sites

So, I get this nice script... thousands of lines long... I open it in the editor (SciTE Version 1.74)

I collapse all of the code into big chunks (-) (+) in the margin

I actually get it down to 2 managable pages...

THIS, I can afford to print in color... so I do

and get a cup of coffee (MAJOR MISTAKE ON MY PART)

I come back in 10 minutes to find a FAT stack of full color code... (Expensive!)

looks like SciTE is expanding when it prints...

I tried to cut&paste... if I do that on a collapsed reigon, you get the "hidden" code that way too...

Howintheheck do I get JUST the visible bits to print? (thinking "Print the collapsed reigons?" checkbox in C#)

Interesting problem.

The only things I can think of are not quick.

1) Add regions to your code if they are not already there, and write a little script to read the main script into a file to be printed but only including the lines depending on the region directives types. You could have a variety of region names to give different results. Maybe ;{$foldfunc}, ;{$foldstart/foldend} and so on. Actually sounds like a useful UDF for someone to write.

2) if there are only 2 pages then you could take a screen shot and print that, or take a screen shot and use some OCR software.

3) I think the information on the folds can be obtained from Scite using messages, so a script could be written to get the visible lines.

Option 1 seems like the simplest quickest way to me.

Perhaps someone knows a neat answer.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Interesting problem.

The only things I can think of are not quick.

1) Add regions to your code if they are not already there, and write a little script to read the main script into a file to be printed but only including the lines depending on the region directives types. You could have a variety of region names to give different results. Maybe ;{$foldfunc}, ;{$foldstart/foldend} and so on. Actually sounds like a useful UDF for someone to write.

2) if there are only 2 pages then you could take a screen shot and print that, or take a screen shot and use some OCR software.

3) I think the information on the folds can be obtained from Scite using messages, so a script could be written to get the visible lines.

Option 1 seems like the simplest quickest way to me.

Perhaps someone knows a neat answer.

any SciTE Guru's out there?

Everseeker

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...