everseeker Posted January 2, 2008 Share Posted January 2, 2008 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 More sharing options...
martin Posted January 2, 2008 Share Posted January 2, 2008 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 marginI actually get it down to 2 managable pages...THIS, I can afford to print in color... so I doand 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 More sharing options...
everseeker Posted January 9, 2008 Author Share Posted January 9, 2008 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 More sharing options...
Developers Jos Posted January 9, 2008 Developers Share Posted January 9, 2008 any SciTE Guru's out there?Dunno .... But to my knowledge this isn't possible with SciTE. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now