Home Download Buy Blog Forum Support

ExportHtml Plugin (rename from PrintHtml)

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Tue Nov 13, 2012 4:13 am

Grant wrote:@facelessuser: you are now inscribed in my signature. classic.

That's funny :).
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Mon Nov 19, 2012 4:59 pm

So, ever since I added background colors to scopes, I have been struggling with the getting the CSS right to support code wrapped in tables (so I can copy and paste into Outlook emails; and other emails), inline spans (they don't seem to expand to fill the table unless they are inline-block; inline-blocks fix the gap issues, but they don't wrap well), annotation underlines ( underlining the annotations with dotted underlines started to break when I added background colors; some weird overlaps etc.).

So I fixed the above issues finally, but the gaps in background color can return if you are using certain fonts. I removed the workaround (which really only helped 70% of the time, but also caused me other headaches). I now recommend if you are using a theme that has background colors to just hard code the font-face in the settings file to something reliable like Courier or Courier New (this font doesn't cause gaps in background colors. It is also much more likely to be on another users computer if you share the html output.). I also changed the underline method for annotations; it now just uses text-decoration: underline; much more reliable when working with the spans and background colors and trying to keep the dotted border from getting overlapped with the odd dynamics that are going on with the spans.

Also added better tooltips for annotations that follow the mouse. I am hoping this is the last update for a bit. I have been getting tired of tweaking all of this stuff.

Its funny, if I just gave up in trying to wrap this stuff in tables, and gave up on the pretty wrapping (wrapping after the gutter), I could solve almost all of these issues quite easily, but the feature I use the most in this is copying to emails, so I need the table wrapping in order to handle themes with non-white backgrounds. So that clears it up. Everything should be more reliable now, but if you get gaps in background colors when using font X, try hard coding the settings file to always use a font like Courier (or something else that is equally reliable for monospace fonts).

Version 0.5.7
- Better tooltips for annotations (they now follow the mouse)
- Remove workaround to fix gaps in background color (it is recommended to just use a reliable font like Courier)
- Change method of underlining annotations to work in wrap mode and non-wrap mode and with background colors
- Fix for CSS in annotation table not handling comment overflow
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Tue Nov 20, 2012 9:01 am

Could you add an air conditioner?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Tue Nov 20, 2012 2:42 pm

castles_made_of_sand wrote:Could you add an air conditioner?

I will have to figure out how to make it work with the air purification system first :).

In all seriousness, I do think I am done with features (and bloat).

If I have to be honest though, the only thing I use ExportHtml for is pasting code to emails. It is funny, because ExportHtml started as a way to print from a browser, but I never print code.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Thu Nov 22, 2012 5:50 am

facelessuser wrote:In all seriousness, I do think I am done with features (and bloat).


Wish I could dig up some 10 second youtube of 2 junkies talking about getting off the gear :)

Sublime + Python == Crack :)
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Thu Nov 22, 2012 6:26 am

castles_made_of_sand wrote:Sublime + Python == Crack :)


It's funny because it's true :). The kind of code I do to pay my bills is very different than this kind of stuff. Python is a very fun language to code in and I also like coding topics that are far away from what I actually do...mainly because they are so different. It can be very addictive.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Thu Nov 22, 2012 11:04 am

What sort of stuff you usually write for $ ?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Thu Nov 22, 2012 3:18 pm

Embedded systems/firmware. I do C/C++/(stare at assembly when I am debugging). A lot of coding directly with the hardware; dealing with registers, keeping memory footprint low, etc.

I like what I do, but stuff like this is a nice break from all the complexity and low level coding.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Fri Nov 23, 2012 11:16 am

facelessuser wrote:A lot of coding directly with the hardware; dealing with registers, keeping memory footprint low, etc


That shit be whack. My brain just doesn't cope with C/C++

Waspect for those whose can :)
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ExportHtml Plugin (rename from PrintHtml)

Postby agibsonsw on Fri Nov 23, 2012 1:38 pm

int(*f(char *c))(int, long*); ?

or, to put it another way..

void *((*fnp[4])())();
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests