I installed it out of curiosity, and I even printed one page of code (the first in decades). I really don’t get what else anybody could ask from a print feature. The only downside is that you are required to have a web browser installed.
Printing from sublime
Could you explain how to add print functionality may slow down development? This is usage of system procedures and yes, I’m a developer and I know how to print simple text. This is not a rocket science, believe me :D. I know, there are so many printers on the market But for God sake, this is only PRINTING a simple text! 11 years and in 2020 text editor has no printing function? Really? Free Notepad++ has it. Windows system Notepad has it. Web browser has it…
Yes, yes, I should use them instead of SublimeText, yeah?
This is wonderful text editor, my basic tool for 7 years. And I cannot print shopping list for my wife from there
It is easy when you do not have to support multiple platform. And even then I should it is easy on Windows mainly.
Yes, we have 2020 and only on Windows printing is easy Other systems don’t have system drivers for printers, don’t support printer pool, every application writes print procedures from the scratch Indeed.
You’re trying to argue that adding printing is as simple as adding a menu button and sending the text to the printer, but have you actually looked at the system APIs that are available on all 3 platforms? In actuality most printing APIs boil down to writing pixels to a canvas, leaving the rest up to the application or UI framework. For reference GTK has over 17000 lines of code to do printing on just Linux and Windows.
You’re wrong, I’m not trying to argue. I’m just disappointed that for so many years a professional text editor hasn’t had the trivial feature that so many users are asking for (look at the number of threads about printing). And that’s it.
Yes. That’s exactly what @bschaaf mentions. It’s not trivial to implement printing consistently across all three platforms and there are probably more issues that need attention than printing.
Have you tried the plugin https://packagecontrol.io/packages/ExportHtml ? Why it isn’t enough for you?
Of course I tried this plugin and this is the best (and working) solution for this purpose. But this is only a workaround (printing from TEXT EDITOR through creating html file and open and print it from web browser) and this is my point.
Guys, I don’t argue with you. I am not a helpless child, I can handle text printing, even without ExportHTML plugin. Why can’t I be disappointed that the paid text editor (my favourite one!) doesn’t have printing as standard?
I agree we should be green in our practices. A “print” option to me provides a means to change the medium the text is inhabiting. I use print to PDF functionality all the time. Allows for code to be placed in a doc that may have passwords associated with it for sharing between other developers/product management/legal, and others not necessarily in the actual code changing business. (The PDF keeps the code relatively safe from being immediately called up into a .c, .tal, .cpp, … code editor and changed. Seems to me any application that produces a product should allow for said product to be “Exported” for use by other applications (other than SAVE). There are work arounds of course … Sublime is my editor of choice, its always open and use it for bulk code writing. I do find it odd the resistance to add a feature that has been done to death and pretty much standardized has been going on for over a decade. At least write a plugin that is up to the quality of the rest of the application. I have not found one to provide the typical options for printing, scaling, orientation, …
Holy Smoke - I just came to the forums looking, yet again, for any signs of development life (the last dev build I see via:
http://www.sublimetext.com/3dev
is build 3210 dated 24 September 2019.
Where are you seeing your information about build 4092?
OK - I was just too excited. I didn’t need to ask here, a simple Google search got me what I needed.
Looks like you missed the switch to v4 … Latest dev build is 4131 from 25 March 2022: http://www.sublimetext.com/dev
I cannot print from Sublime Text. What does ‘which prints via a browser’ mean? What do you have to set up?
I still don’t understand why printing is difficult to code in Sublime Text. Every other text editor can do it.
I cannot print from Sublime Text.
It has to be more descriptive. Just like you won’t be satisfied if my reply is “it works for me”. We don’t even know what you’ve tried, how you tried.
What does ‘which prints via a browser’ mean?
It generates a HTML file and then open a browser to print it.
What do you have to set up?
For me, literally nothing.
Not a direct answer but probably related.
bschaaf — 2020/06/05 00:52
If it was easy I’d have done it already It’s probably not too hard to get to the point where we’re able to print something across multiple platforms, but that’s the easy part. There’s pagination, page sizes, font sizes, margins, colors for syntax highlighting (CMYK is very different), page numbers, a preview of how the print will look and probably a laundry list of other stuff people expect from printing.
OK. Here is a maximally descriptive summary.
I have any open document. I choose Print from the File menu. Nothing happens. No browser opens and no page in any open browser appears. That’s it. Windows 11, Insider Preview build, Sublime Text version build 4143.
I can’t add anything more because there is no more to add.
I am on Win11 22H2 and it works fine with Firefox installed and setup as default browser.
ST creates a temporary HTML in %TEMP%
and opens Firefox with print dialog open.
Tried with ST4107, 4126 4143 and 4150 successfully.
Maybe something’s wrong with OS level default browser configuration?