Sublime Forum

Printing

#21

Here’s my solution, based on all of the posts I read. I couldn’t get any of the plugin methods to work, but ended up with something “simple” anyway. I’m using Windows and I only care about direct text printing, without any kind of formatting - I just want to print the straight text from ST to my default printer.

  1. I downloaded DOSPrinter.
  2. I created Print.sublime-build in my Packages\User directory:

{ "cmd": "C:\\Tools\\DOSPrinter.exe", "$file"] }
When I want to print, I just make sure I’m using “Print” as my Build System and hit Ctrl-B.

0 Likes

#22

Absatively posillutely!! Printing is a must. Why should I have to go to another program to print? Every other editor I have used has a print function. It is probably one of the easiest things to implement.

1 Like

#23

Because the editor you are using doesn’t have a print function.

I would make a guess that almost every person who has said “It’s probably one of the easiest things to implement” has never had to actually implement it, much less on a cross platform application that runs on 3 completely different platforms. Historically, some of the most popular editors relied on 3rd party tools or plugins to implement printing. Vim and Emacs both used to convert documents to postscript then try to send them to the printer using the local postscript driver through a third party program like lp. That mostly worked. I used to “print” my documents to pdf and then used adobe reader to print so that I could get pretty printing in the code documents I would turn in when I was working on my CS undergrad.

There are a lot of questions that you need to answer to get printing right. For some people, they don’t care if their printed documents are syntax hilighted. For others, that’s an absolutely critical feature of printing. How do you handle the case of wanting pretty printing, but the colors the user has chosen for the editor are not compatible with printing on white paper? The fact is, all these other editors you mention have a person on the team whose whole responsibility is to make printing work. That’s what that guy does, and that’s why they can provide that as a feature. ST is a one man shop.

I have rarely heard anyone who doesn’t want to use the plugins give any other reason other than “I shouldn’t have to do it that way.” One person said he couldn’t use the html plugin because he had html files associated with an html editor on his computer instead of a browser. That’s a legitimate beef.

0 Likes

#24

Pardon my analogy:

I effectively bought a Maserati for a text editor; however, when showing off my nice Maserati to my friends, I was mortified to find out that it doesn’t have any seats…I mean, why would anyone make a Maserati without any seats. Here I was, trying to convince my friends to buy a Maserati so they could experience how awesome they are, and when they find out they don’t have any seats they just roll their eyes at me because I spent so much money on a car that doesn’t have any seats. Who cares if I don’t really “need” to sit down when I am screaming down the road because the car looks real nice on the outside, and can do some amazing things on the road. But common folks…the thing does not have any seats!

I was shocked to find out that Sublime Text does not have a basic print feature. Honestly, after spending seventy dollars on a tricked out text editor with syntax highlighting and IDE features built in, I felt a tad bit betrayed that my car did not have any seats. I mean, who would build a car without seats? I don’t care how hard it is to add printing, for a seventy dollar text editor, it darn well should have basic printing. Not some crazy answer of, “it’s on the list, but not a high priority” for seven freaking years. No, for seventy dollars you should be able to spend a few weeks, months, or pay some computer science kid that is just coming out of college to put something together that would at least print basic text.

That said…I still use ST for my everyday text editor, my regular coding text pad, and for a laugh when the average user points at me and asks why I spent so much for a text editor that doesn’t print. It is a great piece of work…it just doesn’t have any seats!

1 Like

Print File?
#25

I disagree, printing would be at best a cigarette lighter in your car analogy: both clearly a relic from the past and unnecessary for the vast majority of customers. Leave printing support to the plugins.

2 Likes

#26

Although i would definitely be willing to degrade the impact of my analogy to something slightly less severe than seats, I can definitely say that a lighter hardly felt like something that had the gut reaction of a missing print feature. Perhaps headlights, wipers, or a muffler. But certainly not a cigarette lighter.

Interestingly, relegating printing to a historic object may be a bit premature as well. I do agree that printing has become something that is definitely less necessary in more recent years, it is still quite useful in today’s business world. There are many times when electronic transmission is either less efficient due to security restraints in a high security environment, more time consuming due to electronic compatibility requirements not being met, or simply not desired by superiors of a more respectable age…ehem…experience level that are not interested in reading from a monitor.

Okay, I got it! How about a head unit (radio, mp3 player, stereo, whatever you want to call it). Listening to the radio on the road seems to be something that has definitely decreased for many people that now prefer to hear their phones over bluetooth whilst driving. However, there are quite a few people that would find buying a car without some kind of head unit/radio a bit odd. And I’m not sure how sales would be for a company deciding that not enough people listen to the radio to warrant pulling them from their models. It doesn’t seem like a good business decision to nix such an inexpensive feature when compared to possible backlash from not providing said feature. I mean, we are talking about printing, not writing to floppy disk, which this program could probably do if floppy hardware were installed. I actually find that last fact very ironic and quite hilarious to be honest. :slightly_smiling:

1 Like

Printing Capability
#27

As I mentioned in my earlier post, is there a reason you don’t want to use any of the plugins that provide printing through the browser?

3 Likes

#28

Because this is so simple and basic functionality in the text editor; it should be done “out of the box”, not through strange plugins sending text as HTML to the web browser :open_mouth:

1 Like

#30

Why I need a real print, my useCase and your career !

I love sublime !

I am 67, I have programmed a lot, and I don’t program anymore! I have used PMate, Brief, TextMate, Sublime (apart from pmate, more or less an evolution, more of the same, just better). Today I use Sublime on OSX and a little bit on Linux Debian.

I do write and most of all structure complicated texts, which naturally, most people would write on papersheets, and have a full desk full of papers, rewriting the notes, merging them, splitting them …

How nice to be able to use the Sublime project commands, to be able to create on the fly a new file without saving/naming it, even to be able to quit without saving, to use a global search, and to manage all these complex things without caring about futilities.

Try to do this with Word, (or Nisus, which I enjoy more)

In my case, layout/formatting is typically pretty trivial. Markdown is more or less sufficient. I probably will end up with orgMode because of the tables.

And quite often, I do need to print, to discuss some notes, to take them with me when walking or whatever. And it is nice to have printed paper to be able to annotate it on the fly with a pen. (Besides, eyes weaken withe age, and always using a computer screen is not a good idea from a health point of view)

As a punchline, many IT-careers evolve in management tasks, and one of the most important capacities when growing older is the capacity to structure complex information. And therefore you need good tools like sublime. And quite often, you do print.

I don’t want to learn a new tool. I already know a highly sophisticated editor, running on any relevant environment. Would you want to change :wink:

When growing older, one needs to communicate more and more, and writing about complex subjects is a natural way of handling this.

So to summarize, as a Christmas gift in 2021 ?? :wink: , I would very much appreciate having

  • a print facility, integrating pandocs, or whatever, and even ideally
  • org-mode support, (Org mode on Emacs permits outlining and restructuring better than Word or even Nisus)

Thanks for reading me, thanks for Sublime, and Cheers

Mathias

1 Like

#32

I believe someone in one of these print threads said that something along the lines of .00000000001% of ST users wanted printing . . . and yet printing is a recurring request from users.

So, not only was the ST4 upgrade a big shock, but this whole printing thing is still a PITA. If there was a poll that was published on features that people wanted to see, I have no doubt that printing would make it to the top of the list. . . and yet the developers clearly ignore the clamour.

Of course, the ST apologists question the use case from those users although we shouldn’t have to defend our use case for printing out of the box (and not through some stupid HTML plugin or via a browser) to anyone. Do I print my code? Very rarely. Do I print little snippets of text from my daily used text editor? Yes, I do, and I do that at least every few days, and yes, that SHOULD be built in.

I bought ST3 years ago and I even tried to pay for the upgrade to ST4+Merge (but my valid cards were declined). Reading through these forums reminded me of that nagging print issue, so I’m having 2nd thoughts on trying it again.

So, call me a whiner if you will, along with those other so called .00000000001% who have requested a native print function, but having to add ‘print’ as some 3rd party mod sure seems like old school neckbeard behaviour on the part of the devs to me.

1 Like

#33

Userecho was used in the past to poll what features people wanted. According to that printing is the 168th most requested feature. Given how much work cross-platform printing is, especially doing it with a proper print dialog and settings, the current approach of using the web browser to print (which is now built-in for ST4) is as far as printing support is ever likely to go.

2 Likes