Home Download Buy Blog Forum Support

ExportHtml Plugin (rename from PrintHtml)

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Wed Oct 31, 2012 8:24 pm

I have now added a toolbar with access to print, hide/show gutter, toggle plain text, download theme, and toggle showing annotation table (if exists). You can configure these with the option toolbar when running the command. It just takes an array of the string keywords to tell ExportHTML which (if any) toolbar items you want to show.

I will be removing the text in favor of icons as soon as I get the time to make the icons. After that, I will stop procrastinating the finishing of BracketHighlighter2.

Demo page has been updated with recent changes http://facelessuser.github.com/ExportHtml/.
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Thu Nov 01, 2012 1:34 am

@facelessuser

You're a nutcase (In a good way :))
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 01, 2012 5:32 am

castles_made_of_sand wrote:@facelessuser

You're a nutcase (In a good way :))

:)

On a side note, the toolbar is complete. Demo page is updated.
Screen Shot 2012-10-31 at 11.20.24 PM.png
Screen Shot 2012-10-31 at 11.20.24 PM.png (9.64 KiB) Viewed 1834 times
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Fri Nov 02, 2012 2:38 pm

All changes are in. I fixed some stuff and added the ability to toggle wrapping via the toolbar (if wrapping was enabled). I am done fooling with this for now. Hope you guys like the changes. As always, feel free to report bugs or give feedback. Now I will get back to work on BracketHighlighter2.

Version 0.5.0
- Added ability to define path to save generated html to a specific folder with optional timestamp
- If selection foreground is not defined, use normal colors for text.
- Click annotations to show annotation jump table
- Removed shortcut actions
- Themes are now embedded in the html and can be extracted
- Added toggle plain text option and toggle wrapping (if enababled)
- Added toolbar to print, download theme, disable toggle wrapping (if enabled), toggle annotation jump table (if annotations available), toggle plain text, and toggle gutter
- Exposed toolbar options in configuration (can define any toolbar item to appear)
- Split out javascript into separate files
- Improved and fixed javascript issues
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby agibsonsw on Fri Nov 02, 2012 7:31 pm

- Improved and fixed javascript issues


@facelessuser - just curious what JS issues? I assume nothing too significant..
"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

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Fri Nov 02, 2012 7:39 pm

No nothing noticeable. Mainly sloppy coding on my part. And tried to be more efficient about certain things.
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Tue Nov 06, 2012 4:45 am

Really wasn't planning on touching this again so soon, but there where a number of IE bugs (no surprise there), and I really wanted to add support for scopes that use background colors. That's it for real this time :).

-Fix plain text mode in IE8
-Fix plain text mode copy paste IE(remove syntax highlight so IE copy and paste doesn't copy hidden elements)
-Fix stippled boxes around toolbar icons when clicked in IE
-Fix sorting of object keys in a way compatible with IE<9
-Fix issues where lines would show gaps between lines in multi-line highlights
-Fix issues in IE when gutter is disabled empty rows collapse
-Move CSS to separate file
-Add global option to configure toolbar orientation (horizontal|vertical)
-Add support for background colors of scopes in theme file
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Tue Nov 06, 2012 4:54 am

Export Html currently only selects one theme entry to highlight code with, but syntax highlighting themes that heavily use background colors actually have some more dynamic interaction allowing essentially multiple definitions to highlight one bit of text. So one theme entry may paint the background, but another entry will paint the foreground. Themes like this, ExportHtml can render quite ugly. Just an FYI. I might add in a temporary switch to disable background color painting until I get better support in, we shall see. My real goal is to get better background support though. Maybe in a couple of weeks.
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby facelessuser on Tue Nov 06, 2012 7:33 am

I got a little ambitious, and added some better rules for selecting background colors etc. and also actually process transparent colors by simulating what they should look like. I would post an example, but its late.

-Simulate transparency
-More dynamic rules for colors and styles
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: ExportHtml Plugin (rename from PrintHtml)

Postby sublimator on Tue Nov 06, 2012 10:29 am

This is lame dude, I can't even change theme on the fly ;)
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

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests