OMG! Really? I can print in literally EVERY other text editor I know, but not Sublime? I need to print my code, so that I can parse through it by hand. Why in the world is this not a default feature?
Printing Capability
This has been extensively discussed Here and Here (among others). These threads already answer your question.
As mentioned in the threads linked by @GameGenie710, Iāve found that ExportHtml is a good option for printing source code from Sublime.
Thanks, but as mentioned in the threads provided, itās a feature thatās at least been requested since 2009 and itās still not there. If itās a priority at allā¦low or not, 8 years is a bit excessive. Itās not excessive, however, to ask for a very basic and common feature that all competitors have and any text/code editor should have.
In fact, the first words on the Sublime Text home page are: āSublime Text is a sophisticated text editorā Lacking a basic functionality, such as being able to print, makes that claim rather awkward. Relying on statements like āis there a reason you donāt want to use any of the plugins that provide printing through the browser?ā is also, frankly, BS. Iām not trying to sound insulting, but honestly, itās a print function, not a feature you should have to rely on another app or plugin for, simply because your āsophisticated text editorā canāt bother to have it. All that tells businesses and professionals is that your $70 app canāt handle all the basic functions that 99% of the free text editors can do.
As an example, Iām actually trying (as we speak), to get my employer to buy this for me, rather than me using my personal license. While they were willing to do it, as I spoke to them about it, once I got to the fact that it couldnāt print, they cocked their head and gave a smirk. That doesnāt speak well for spending $70 on a āsophisticated text editorā that canāt even print. What my employer starts hearing is how much it can do, but all they remember is ābut it canāt print.ā
As mentioned in the linked threads, literally EVERY other text editor can NOT print. Atom does not print, neither does Visual Studio Code or Adobe Brackets. Vim does not print natively, nor does Emacs - just to mention a few.
Sure, it can be annoying the few times you actually need printing, but there are solutions available for Sublime Text. Searching Package Control for print gives several hits, among those my own plugin that I put together almost five years ago. It is still good enough for meā¦
Just by curiosity @psiclone: how many times do you have to print something, per week (days, months, you tell me)?
@svenax Still good enough for me too, thanks.
Whatās all the fuss about?! Install svenaxās Simple Print Function plugin.
Off the top of my head, here are just two editors that can print are Eclipse and NotePad++. Hereās a few more (VisualStudio, TextMate, Coda, and Espresso), and there are many others. I mentioned VS, as you did, becauseā¦as you can see here (https://msdn.microsoft.com/en-us/library/1zh337ws(v=vs.100).aspx), you CAN print using VS.
Tell you whatā¦itās no big deal. Donāt add printing, forego the sale, and weāll call it done. NotePad++ here I come. Itās clearly a more capable editor, anyway, and they donāt pretend to be by lopping on a $70 charge.
Obviously, adding a built-in functionality of basic Windows apps is too hard for this developer, or theyāre just not up to the task. The need for print capability as justified by the fact that the topic has come up a number of times over the last 8 years and requires workarounds (like plugins) says a lot about why the program isnāt worth the $$.
Iāll just laugh about this when I have to go to my boss again with a code snippet that I printed and say, āHey, we saved $70!ā
This requirement, by the way, has come up in forums for all the programs mentioned that donāt support printing and thereās literally no good reason not to provide such a basic capability.
NOTE: For the record, I tried installing and running the Simple Print Function plugin and got an error about ālpstat.ā Iām not going to fight with that to get it to work. Itās great on you to write the plugin, donāt get me wrong, but some need must have prompted the effort to program it.
Yep, thanks. It sounds like the right thing to do, considering the general attitude about supporting this app. What a waste of time and money.
I mentioned Visual Studio Code, not Visual Studio. Not that it matters, there are of course examples of both behaviours.
Itās by missing ST (and using Notepad++) that your going to waste your time. Have you even had a look at the Edit
menu? took the time (about a day) to try to use some of the command that are listed in it and realise how much time itās saving you? Have you learned to use the goto anything properly (5 minutes)? Did you take the reflex to use the command palette instead of the menu? Did you have a look at some of the plugin built by the community? Have you learned to use the snippets? The build systems? The macros? The layouts?
Iām not mentioning the possibility to create your own plugin here, since itās not common to customise ST that much. (although it should be in my opinion)
Or you just came, saw there werenāt any printing option by default, and start complaining? If itās the case, I can tell you: youāre missing something.
That was a huge factor for me. Being able to easily and rapidly extend Sublime was key. I can just use Python. I donāt have to compile dlls or any foolishness like that. And I really like Python ;).
The āPrint to HTMLā plugin works like a charm for me. Shift-Alt-P, colorized text with line numbers in your browser and it even brings up the print dialog box. ST3 on Win10. I tried Notepad++, once; ok, maybe twice but there is nothing like ST!!
Seriously, how often do you need to print from your editor? It feels like this is analogous to saying that Sublime Text is poorly supported because it doesnāt natively support floppy disks.