Sublime Forum

Printing recommendations?

#1

First an apology. I’m sorry I just keep managing to find things that don’t quite work on ST3. I’m amazed no-one else runs into this stuff. It looks like folks are getting bored with answering my endless questions, fair enough I suppose. I really appreciate the time some people put in to giving me answers, so once again thanks to those that have helped me find solutions.

Have got to the point where printing out some hard copies would be very useful in the current project… (aaah haaa)

So having installed ExportHtml and gone to the quick start guide, I have these errors (following the advice of the guide, went to control panel to see the errors)

File “/home/elitebook/.config/sublime-text-3/Packages/mdpopups/st3/mdpopups/init.py”, line 664, in add_phantom
nl2br=nl2br, allow_code_wrap=allow_code_wrap
File “/home/elitebook/.config/sublime-text-3/Packages/mdpopups/st3/mdpopups/init.py”, line 328, in _create_html
allow_code_wrap=allow_code_wrap
File “/home/elitebook/.config/sublime-text-3/Packages/mdpopups/st3/mdpopups/init.py”, line 441, in md2html
).convert(_markup_template(markup, template_vars, template_env_options)).replace(’"’, ‘"’).replace(’\n’, ‘’)
File “/home/elitebook/.config/sublime-text-3/Packages/python-markdown/st3/markdown/core.py”, line 265, in convert
self.lines = prep.run(self.lines)
File “/home/elitebook/.config/sublime-text-3/Packages/pymdownx/st3/pymdownx/superfences.py”, line 737, in run
return self.search_nested(lines)
File “/home/elitebook/.config/sublime-text-3/Packages/pymdownx/st3/pymdownx/superfences.py”, line 601, in search_nested
self.eval_fence(ws, content, start, end)
File “/home/elitebook/.config/sublime-text-3/Packages/pymdownx/st3/pymdownx/superfences.py”, line 407, in eval_fence
self.process_nested_block(ws, content, start, end)
File “/home/elitebook/.config/sublime-text-3/Packages/pymdownx/st3/pymdownx/superfences.py”, line 451, in process_nested_block
code = entry[“formatter”](self.rebuild_block(self.code), self.lang, self.options, self.md)
File “/home/elitebook/.config/sublime-text-3/Packages/pymdownx/st3/pymdownx/superfences.py”, line 666, in highlight
linespecial=linespecial
File “/home/elitebook/.config/sublime-text-3/Packages/mdpopups/st3/mdpopups/mdx/highlight.py”, line 450, in highlight
code = highlight(src, lexer, formatter)
File “/home/elitebook/.config/sublime-text-3/Packages/pygments/all/pygments/init.py”, line 87, in highlight
return format(lex(code, lexer), formatter, outfile)
File “/home/elitebook/.config/sublime-text-3/Packages/pygments/all/pygments/init.py”, line 66, in format
formatter.format(tokens, realoutfile)
File “/home/elitebook/.config/sublime-text-3/Packages/pygments/all/pygments/formatter.py”, line 95, in format
return self.format_unencoded(tokensource, outfile)
File “/home/elitebook/.config/sublime-text-3/Packages/pygments/all/pygments/formatters/html.py”, line 831, in format_unencoded
source = self.wrap(source, outfile)
File “/home/elitebook/.config/sublime-text-3/Packages/mdpopups/st3/mdpopups/mdx/highlight.py”, line 240, in wrap
return self._wrap_code(self, source)
TypeError: _wrap_code() takes 2 positional arguments but 3 were given

Any help much appreciated, Lozminda

ps I can’t find any instructions for it’s use anywhere, so I can’t even test it…

0 Likes

#2

ExportHtml has an entire documentation site: https://facelessuser.github.io/ExportHtml/.

Due to dependencies, ExportHtml requires that Sublime must be restarted after first installation to ensure all dependencies and modules are loaded proper after first installation. I should probably put a note about that in the install/upgrade message. This is covered in the documentation’s install instructions: https://facelessuser.github.io/ExportHtml/installation/#package-control.

Once restarted, quick start guide should work, but feel free to file any issues at the repository if it doesn’t: https://github.com/facelessuser/ExportHtml/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc.

You can always just reference the full, linked documentation as well.

0 Likes

#3

Ha ha, thank you. It seems I’m unable to work a web page, I did go to the link https://facelessuser.github.io/ExportHtml/ before but was unable to use the menu at the top left (coz I’m a muppet). I was wondering why it was so bereft of information. Doh.
Anyroad, thank you…

0 Likes

#4

No worries, I get this question after first installs every now and then. I should really just add a notice to the initial install message to restart Sublime.

0 Likes

#5

Just a update. Printer’s crashed. Have no idea what the cause was. Did remove ExportHtml in case that was the problem, but still not functioning. It could be anything as it happens. Haven’t had time to go back to it, as I managed to do my class re-factoring with reference to a hard copy I’d got another editor to print out…Correlation is not causation so until I wade through the printer errors…

All the best

:beers:

0 Likes

#6

There is no way it is ExportHtml. It doesn’t directly do anything to a printer. All it does is export to a browser so you could print it. It doesn’t provide a printer driver or even an application that interfaces with a printer, and it certainly doesn’t touch your printer configuration.

0 Likes

#7

Good to know ! Printer’s sorted itself out. The old “turn off and leave for a day” cure. It’s great when “challenges” just go away.

Thanks for your help. :wink:

0 Likes