Code Monkey home page Code Monkey logo

exporthtml's People

Contributors

agibsonsw avatar edspencer avatar facelessuser avatar gargron avatar hadisfr avatar mikelei8291 avatar nicholasbuse avatar zolrath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

exporthtml's Issues

Opens twice in browser

Love, love, love this plugin!! Here's my only issue so far:

Whether I choose to view or print in browser, it opens up two tabs. Currently my default browser is Firefox, however if I switch my default browser to Chrome, I get the same two tab issue. I've also tried reverting ST2 to defaults and still get two tabs.

Thanks!

Naming the resulting html file ready to be used

I am really enchanted with this package and I use it intensively…

I use it especially for generating html versions for my .cpp files ready to be uploaded to the Moodle platform.

But I have found it could be great if it had a pair of new parameters:

  • destFolder: where to write the html file (avoiding the unix temporary directories)
  • useTitleAsFilename: as frequently occurs your file has a title that is already used as html title, but as it is send to temporary folders this title is not used as a file name.

It could be great to have a base filename as the title plus .html as extension, of course.

For example, if your source file were 01.factorial.cpp the generated file could be:

 /Users/me/Desktop/examples/01.factorial.cpp.html

when you put destFolder to

"~/Desktop/examples"

and useTitleAsFilename to true.

I know these options can yield errors, but those errors are easy to prevent.

spacers

Hi

I consider, since it appeared, ExportHTML, the best companion for ST2/3, without it I don't know the amount of time I would have wasted copying pasting in another places or doing weird things to have the source code coloured. And it is amazingly supported, thanks!!

There is one glitch that has been annoying me a bit since long time ago. I usually create a HTML output not for the file, nor for the real HTML, but to copy/paste parts of it as answers to my students. The best situation for this is ST3/Safari/Mail. The issue here is when having in the original source file a space, but splitting two different things, different colours, ExportHTML generates a HTML entity that is not a real space:
captura de pantalla 2015-07-28 a las 9 18 45

then, copy/pasting it in Mail it gets joint, and look a bit dirty and ugly:

captura de pantalla 2015-07-28 a las 9 21 39

If the student copy/paste the code in their editors won't have any space in between either.

Is there any solution for this problem?

Thanks in advance

Copy to Clipboard

Could you add an option to "Copy to Clipboard" in various formats?
Could it be done with the clipboard format set so that it will paste as coloured text rather than plaintext in supported target apps?

  • Set RTF to the clipboard so it can be pasted to RTF aware apps.
  • Set HTML to the clipboard as well so it can be pasted to HTML aware apps too.
  • Set plaintext to the clipboard as well so it can be pasted to other apps.

contextual menu items dimmed

I am very late in providing input for issue 28, thus it was closed inbetween. I created a new issue for this input (also added to issue 28). Let me know if it's better for you to reopen issue 28.

Issue is: when right clicking on selected text, the “HTML” and “BBCode” options are always dimmed (greyed out). Using OS X 10.10.3.

Here the console output. There are some errors indeed: “No module named HtmlAnnotations” for example.

startup, version: 2221 osx x64 channel: stable
executable: /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
working dir: /
packages path: /Users/hobbes/Library/Application Support/Sublime Text
2/Packages
settings path: /Users/hobbes/Library/Application Support/Sublime Text
2/Settings
PackageSetup not required
catalogue loaded
found 6 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 4 files for base name Main.sublime-menu
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/0_package_control_loader/02-bz2.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./02-bz2.py", line 2, in <module>
    from package_control import sys_path
ImportError: No module named package_control
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/CSS/css_completions.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/comment.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/copy_path.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/delete_word.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/detect_indentation.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/duplicate_line.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/echo.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/exec.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/fold.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/font.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/goto_line.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/indentation.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/kill_ring.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/mark.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/new_templates.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/open_file_settings.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/open_in_browser.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/paragraph.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/save_on_focus_lost.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/scroll.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/side_bar.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/sort.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/swap_line.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/switch_file.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/transform.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/transpose.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Diff/diff.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportBbcode.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./ExportBbcode.py", line 5, in <module>
    from ExportHtml.lib.color_scheme_matcher import ColorSchemeMatcher
  File "./ExportHtml.py", line 8, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportHtml.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./ExportHtml.py", line 8, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/HtmlAnnotations.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./HtmlAnnotations.py", line 3, in <module>
    from ExportHtml.lib.notify import error
  File "./ExportHtml.py", line 8, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Filter Lines/Filter Lines.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/HTML/encode_html_entities.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/HTML/html_completions.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Package Control/Package Control.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/Package Control/bootstrap.py
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/StyleToken/StyleToken.py
plugin init time: 0.285379
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.803249
using gpu buffer for window
using gamma: 2 (err: 6.9282)
startup cache, total files: 102 cache hits: 102
startup time: 1.19583 (package setup was not run)
loaded 837 snippets
Package Control: Installing 1 upgrades
ignored packages updated to: [Vintage, ExportHtml]
found 1 files for base name Default.sublime-theme
Unloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportBbcode.py
Unloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportHtml.py
Unloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/HtmlAnnotations.py
found 3 files for base name Main.sublime-menu
reloading /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/User/Package Control.sublime-settings
reloading /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/User/Preferences.sublime-settings
theme loaded
found 1 files for base name Default.sublime-theme
theme loaded
Package Control: Upgraded ExportHtml to v2015.05.15.22.53.32
ignored packages updated to: [Vintage]
found 1 files for base name Default.sublime-theme
reloading /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/User/Package Control.sublime-settings
reloading /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/User/Preferences.sublime-settings
theme loaded
found 1 files for base name Default.sublime-theme
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportBbcode.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./ExportBbcode.py", line 6, in <module>
    from ExportHtml.lib.color_scheme_matcher import ColorSchemeMatcher
  File "./ExportHtml.py", line 9, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/ExportHtml.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./ExportHtml.py", line 9, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
Reloading plugin /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/ExportHtml/HtmlAnnotations.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./HtmlAnnotations.py", line 4, in <module>
    from ExportHtml.lib.notify import error
  File "./ExportHtml.py", line 9, in <module>
    from ExportHtml.HtmlAnnotations import get_annotations
ImportError: No module named HtmlAnnotations
found 4 files for base name Main.sublime-menu
theme loaded
reloading /Users/hobbes/Library/Application Support/Sublime Text
2/Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded

HTML to clipboard

I find myself frequently needing to

  1. export to HTML Browser View,
  2. right click on browser window
  3. view source
  4. select all
  5. copy to clipboard

Could "HTML copy to clipboard" be available alongside 'Browser View' and 'Browser Print' - or am I missing a trick here?

nb: I'm still a bit confused about the clipboard capabilities in Linux (Ubuntu/Mint) now I've finally made 'the switch' - but sometimes clipboard content seems to know what it is (eg: in this case HTML) as a hint to whatever application it's being pasted into (which seemed to work more consistently in that other OS) and at other times it doesn't. So, combined with this is 'whatever' it is that will mean the clipboard content gets pasted in as HTML rather than just text, to an application that can render (to a greater or lesser degree) HTML.

Cheers.

Embedding friendly output?

This plugin is beyond awesome!
The only problem I am facing is:
After I would export the code to HTML, it would generate a HUGE file that I have to extract the "pre" part in order to embed in my site. This also leads to losing the JS functionality.

Could you please suggest a productive way to generate snippets that are easy to embed into a website? Maybe add a new export option?

Thanks,
Maz

[Feature request] "line-height" option

In my work sometimes I need in my documents to insert the text in the blank forms and then print documents. Example:

Elections

The picture shows that the text is either above or forms, where I should insert the text. Leading turns big. I can not do so that 20 .and Черкесск are positioned on the black parallel lines, when big font size. So I have to change the font size or should I edit my documents that I need to print, in HTML.

I have read the documentation on the use of ExportHTML plugin, but I did not find the option of leading change. I think that this option should be. I need it, maybe other users of your plugin, this option is also useful.

Thanks.

Minor comment error in sublime-settings file

Line 135 in the sublime-settings file is

// Sublime view grayscale HTML source; (selections and multi-selections allowed)

should be

// Sublime view color HTML source; (selections and multi-selections allowed)

Suppress time-stamp etc. on first line

Great package, thanks! I didn't see anything in the settings file that allows the time-stamp, file location, etc. at the top of the file to be suppressed (or the stuff at the bottom). I'd like a way to print something that is as close to a direct mapping from sublimetext to printout as possible, with no additional things displayed.

Sorry if this is right in front of me somewhere.

[Feature Request] Export Code Block

First of all, this plugin is epic!  I checked out the Sublime View output, and it's pretty crazy how you were able to deconstruct the code + syntax & repackage it into HTML. 😃
 


 
The feature request is based on the issue of copying exported code back to an editor.

Currently, if you attempt to do so, this happens:

animation 1

 
I think that is similar, if not the same, as the problem described in Issue #26.

 
So that got me thinking, is it possible to export to a code block similar to the SublimeText forum?

For example:
codeblock
 


 
The benefits are:

  • it does not require wrapping, so code can be displayed as it was written
  • code can be easily copied into an editor
  • easy to include & isolate multiple code samples so the page doesn't end up crazy long

 
Some improvements upon the standard code block could be:

  • custom colors based on tmTheme files ( as you currently have )
  • a line number section on the side that does not interfere with text selection
  • @ sublime-settings : options for [ min | max ] height & width

 
I'm not sure if this could be done entirely in HTML, but it would still be pretty cool even if it required a bit of extra work to implement on the user side.  😄

contextual menu items dimmed

Probably a noob mistake from me, but I just installed exporthtml using package control on ST2 and when I right click selected text, the “HTML” and “BBCode” options are always dimmed (grayed out).
I use OS X 10.10.2.

Background color

Background colors are disabled in browser printing by default, so they will not print until background color printing is enabled

Does this mean until I enable "background color printing" somehow or this is a future feature?

Bold and italic not exporting to bbcode

To reproduce, try these steps:

  • Create a new file in Sublime Text 3
  • Select the default Eiffel color scheme.
  • Set language to C# and enter this code:
public class Example
{
    public void Test(string str) { }
}
  • Example and str should be in italics, Test should be bold.
  • Export to bbcode using "Sublime View - Show BBCode in View"
  • The result will look like this:
[pre=#FFFFFF][color=#000000]public[/color][color=#000000] class[/color][color=#000000] Example[/color]
[color=#000000]{[/color]
[color=#000000]    public[/color][color=#000000] void[/color][color=#0000A2] Test[/color][color=#000000]([/color][color=#000000]string[/color][color=#0206FF] str[/color][color=#000000])[/color][color=#000000] {[/color][color=#000000] }[/color]
[color=#000000]}[/color]
[/pre]

Bold and Italic markups are missing from the code.

General info:

  • Windows 8.1 Pro (64 bit)
  • Sublime Text 3 Build 3083 (64 bit)
  • Installed Package Manager to download ExportHtml (ST3 branch)

Doesn't work

I am trying to get this plugin to work and after spending frustrating 2 hours on this, I give up. Either the documentation is out of date or is unclear.

This is how my Print To Html.sublime-settings file looks like

{
  // Define configurations for the drop down export menu
  "html_panel": [
    // Browser view color (selections and multi-selections allowed)
    {
      "Browser View - Color": {
          "numbers": false,
          "wrap": 900,
          "browser_print": false,
          "multi_select": true,
          "color_scheme": "Packages/Cast.tmTheme",
          "style_gutter": false,
          "no_header": true
      }
    }
  ]
}

It just doesn't pickup these settings.

Documentation around what it does is pretty clear, how it does is probably not. I did not know how else to ask than creating a new issue.

Line wrapping splits words

Hello,
I've tried the plugin and I have found that words are split when line wrapping is on.
Generally, I'd think that line breaks should not split words and only split white-space when possible.

I have found that changing '& nbsp;' in lines 581 and 582 in ExportHtml.py to ' ' fixes this. Is there a particular reason why non-breaking white-space was used?

Thank you.
Cheers,
Andreas

pyexpat import fails

Hi. I'm having some issues with your plugin. I get this error:

Traceback (most recent call last):
  File "./ExportHtml.py", line 432, in execute
  File "./ExportHtml.py", line 902, in run
  File "./ExportHtml.py", line 519, in setup
  File ".\plistlib.py", line 78, in readPlist
  File ".\plistlib.py", line 401, in parse
  File ".\xml\parsers\expat.py", line 4, in <module>
 ImportError: No module named pyexpat

I google it and it seems to happen on the 12.04 Ubuntu, which have removed from the package list the python2.6 package, and so it uses the one from sublime itself. More infos here

But none of the solutions proposed on this tread actually seem to work.
Just opening an issue so you can be aware of this problem (and if you have any idea on how to resolve it, by chance, please tell).

Every tab is converted into (in my case) 4 spaces

Description

Every tab character is converted to (in my case) 4 spaces, while it should be converted into 1, 2, 3 or 4 depending on the alignement I am trying to produce. In other words the following table should look like this (the browser prints tabs as 8 characters though, but I think you get the idea) on output:

============================================================
T	Tp	Sp	D	Dp	S	D7	T
------------------------------------------------------------
A	F#m	Bm	E	C#m	D	E7	A
A#	Gm	Cm	F	Dm	D#	F7	A#
B♭	Gm	Cm	F	Dm	E♭m	F7	B♭

but it looks like this:

============================================================
T    Tp    Sp    D    Dp    S    D7    T
------------------------------------------------------------
A    F#m    Bm    E    C#m    D    E7    A
A#    Gm    Cm    F    Dm    D#    F7    A#
B♭    Gm    Cm    F    Dm    E♭m    F7    B♭

Support Info

  • ST ver.: 3143
  • Platform: osx
  • Arch: x64
  • Plugin ver.: 2.10.2
  • Install via PC: True
  • mdpopups ver.: 3.1.3
  • markdown ver.: 2.6.9
  • pygments ver.: 2.1a0
  • jinja2 ver.: 2.8

Steps to Reproduce Issue

  1. Export to HTML: Show Export Menu
  2. Browser Print: Color

Plain Text View

When I toggle plain text view in IE 8 (Win 7 x64 Enterprise) all text becomes Undefined. Toggling back restores everything back to normal.
Toggle gutter works fine.

improve usability

It was a frustrating experience having the package installed but not being able to use it.

After fiddling with settings recommended in readme, restarting Sublime, searching in menu, command pallete... I was still not able to see my JS code in browser.

Please add simple description how to use the plugin from the end user perspective. Configuration is fine, but it is useless when I can not apply the plugin. It should work out of box after installation.

Context menu directly print (skip export type and command palette selection)

Hi facelessuser,

Your effort on this plugin is impressive and very much appreciated. Although the plugin has tons of great features, I would like to be able to select an entry from the context menu that directly calls the "Browser Print - Grayscale" option (without having to choose export, then html and then choose the appropriate option in the command palette).

Unfortunately I'm having some difficulty figuring out how this might be achieved. It's clear how to clean up the context menu and also how to override the options in the command palette, but I have no idea how to create a key binding or menu entry that directly calls a specific export configuration.

Any change you might be able to provide an example?

Thanks,
Josh

Usage

Hello,

I really want to use this with ST2 but your readme does not contain information for me, a new user. So I dont know how to install it. What I did try didnt work. I tried installing the repo as you would with ST3 but even that showed me no menu options.

Please advide

Backround color set to "none" in Print-Color.sublime-color-scheme turned into white

Description

Cannot set the background color to "none" in Print-Color.sublime-color-scheme: the background color of the spans which class is "real_text" in the generated HTML document is set to white ("#FFFFFF") instead.

It is important to be able to specify "none" and get "none" in the end, because if you copy-paste the generated HTML in a Word document, you will never be able to remove the background-color unless it is set to "none" in this HTML document.

Support Info

  • ST ver.: 3207
  • Platform: windows
  • Arch: x64
  • Plugin ver.: 2.13.0
  • Install via PC: True
  • mdpopups ver.: 3.4.0
  • markdown ver.: 2.6.11
  • pygments ver.: 2.1a0
  • jinja2 ver.: 2.8

Steps to Reproduce Issue

  1. Install ExportHTML
  2. Select Preferences / Color Scheme...
  3. Select Print-Color
  4. Select Tools / Packages / Packages Development / Edit Current Color Scheme...
  5. Update the "globals" section like this:
"globals": {
	"background": "none",
},
  1. Load some source, click the right mouse button and select Export / HTML
  2. Select "Browser View - Color"
  3. Look at the source code for the HTML page:

<span class=" real_text" style="background-color: #FFFFFF; color: #000000;">

So the background color is not "none", it is "#FFFFFF". Notice that the background color would have been set to whatever otherwise (for example: "red" gives "#FF0000").

datetime.datetime.now() does not work

Repaired the problem with date and also the annoying filename showing the full path, in file: ExporHtml.py:813

    if not self.no_header:
        # Write file name
        # date_time = datetime.datetime.now().strftime("%m/%d/%y %I:%M:%S")
        date_time = datetime.date.today().isoformat()
        the_html.write(FILE_INFO % {"color": self.fground,
                       "date_time": date_time, "file": path.basename(self.file_name)})

Thanks for your excellent plugin.
JF

Unsaved files

I do a lot of forum discussion on snippets of code… code that I take from different places, and, well, having it html-exported is very fast with ExportHtml, but the cumbersome part is to need to write this small piece of C code, most of the times, as usually untitled.cpp there on the Desktop, to be able to use ExportHtml

New color schemes and copyright issues

There is the following statement in readme.md:

Print-Color and Print-Grayscale tmThemes were derived from Monokai Bright.

What was that Monokai Bright? Was that the original sublime's one?

If so, can we add other default sublime color schemes (e.g. Breakers, Celeste, Mariana, Monoka, and Sixteen) to project without violating copyright law?

Export options disabled on Sublime Text 3

Just installed this (using package manager).
Right clicking on a file shows me an export menu now but the HTML and BBCode submenus are both greyed out and cannot be selected.

I am using build 3038 of sublimetext 3 on 64 bit Windows 7 and have restarted SublimeText3. Problem remains.

Syntax specific color scheme

I found great to use different color scheme for differents syntaxes

Can you overwrite the user color scheme with the syntax specific one when exists ? ty

No Menu

How should this be installed?
I am unable to clone due to work internet access restrictions, so i downloaded the zip.

Unzipping master branch to Data\Packages\ExportHtml, then:
Press: Ctrl-Shift-P
Type: "Export"
The menu is not listed.

Unzipping master branch to Data\Packages\ExportHtml-master, then:
Press: Ctrl-Shift-P
Type: "Export"
The menu is listed.
Choose Export to "HTML: Show Export Menu"
Choose Export to "Browser View: Colour"
Error Log:

Traceback (most recent call last):
File ".\ExportHtml.py", line 211, in execute
File ".\ExportHtml.py", line 727, in run
File ".\ExportHtml.py", line 333, in setup
File ".\ExportHtmlLib\color_scheme_matcher.py", line 34, in init
File ".\plistlib.py", line 75, in readPlist
IOError: [Errno 2] No such file or directory: u'C:\Portable\Sublime Text 2.0.2\Data\Packages\ExportHtml\ColorSchemes\Print-Color.tmTheme'

Unzipping master branch to Data\Packages\ExportHtml AND Data\Packages\ExportHtml-master, then:
It works... but there are duplicate Export menus and it does not default to my active colour scheme.

Maybe because my theme is here:
Data\Packages\VB\Theme\Monokai VB.tmTheme

ExportHTML: HTML option is grayed out

I am running Sublime Text 3 on Ubuntu 16.04 LTS 64bit. Once I set this package up, I have realized that the option "HTML" on the "Export" menu item in the right click menu is grayed out. I have tried reinstalling and restarting many times. But still no good. The same when I tried in Windows, it works perfectly. Please sort this out.

Following are the support info.

  • ST ver.: 3103
  • Platform: linux
  • Arch: x64
  • Plugin ver.: 2.3.1
  • Install via PC: True
  • mdpopups ver.: Version could not be acquired!
  • markdown ver.: Version could not be acquired!
  • pygments ver.: 2.2a0
  • jinja2 ver.: Version could not be acquired!

The BBCode option is available and it works.

HTML without tables

The Plugin itself is really wonderful, nearly the solution I searched for.
The Problem is, when I copy the HTML from the Browser view, it contains cells and this doesn't look nice, when copied into a mail, Richtext Editor or Open Office / Word.
Would be nice to be able to deactivate table generation same way as deactivating line numbers.

Maintain indentations and wordwrappping in html

Hello,

I am wondering if it is possible to add a setting where indentations and wordwrap in sublimetext carry over to the exported html. E.g. this page

screen shot 2016-03-07 at 10 17 32 am

when exported to html, produces a file where long lines just get truncated from the browser window instead of being wrapped and indented, e.g. like this

screen shot 2016-03-07 at 10 22 14 am

I hope I'm not overlooking some documentation again like last time I posted an issue (I did check!) and I suspect there is no easy solution on this, but thought it was worth a shot. Thanks!

ExportHTML: does not appear in Package Settings menu; throws ImportError on run

I've installed ExportHTML and restarted Sublime Text, but there is no ExportHTML entry in the Preferences > Package Settings menu — surely this should be there?

When I manually created Packages/User/ExportHTML.sublime-settings and put the following in, it didn't seem to apply it:

{
    "html_panel": [
        {
            "Browser View - Color":
            {
                "view_open": true
            }
        }
    ]
}

Selecting Browser View - Color from the export menu then does not open a new Sublime Text tab. (It might well be trying to open a browser, but that doesn't work on my Ubuntu install for other apps, so that's not ExportHTML's fault 😄)

Incidentally, is there somewhere I can put "view_open": true to make it apply to all view options, or do I have to set it for each view?

Some unicode files can't be exported.

Fail to export certain files encoded in utf-8 (which contains chinese characters) , while some other utf-8 files can be properly exported.
Error information:

Traceback (most recent call last):
File ".\ExportHtml.py", line 211, in execute
File ".\ExportHtml.py", line 895, in run
File ".\ExportHtml.py", line 794, in write_body
UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e66' in position 98: ordinal not in range(128)

Would like a setting to ignore the fact that some text is selected when exporting

Suppose you have some text selected. If "highlight_selections" is true, it exports the entire file, and highlights the selected bit. If "highlight_selections" is false, it only exports the selected text. What I would like is a setting in which it exports the entire file, and ignores the fact that some of the text happens to be selected, not highlighting it at all. I don't like having to consciously make sure that there is no text selected before I go to export the file.

Fix non-ASCII file path support

Hello,

I don't manage to use your plugin in Sublime Text build 3083 on osX 10.10.3.
I get the following in the console:

Traceback (most recent call last):
 File "ExportHtml in /Users/John/Library/Application Support/Sublime Text 3/Installed Packages/ExportHtml.sublime-package", line 211, in execute
  File "ExportHtml in /Users/John/Library/Application Support/Sublime Text 3/Installed Packages/ExportHtml.sublime-package", line 782, in run
  File "ExportHtml in /Users/John/Library/Application Support/Sublime Text 3/Installed Packages/ExportHtml.sublime-package", line 680, in write_body
UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-146: ordinal not in range(128)
DEBUG:TS:call get_event from on_idle
DEBUG:TS:asking for errors

Please, can you tell me what I have to do to make it work?
Thank you!

Automatically open browser tab with "Browser Print"

Description

  • Selecting "Browser Print" opens a new Sublime Text tab with a temporary HTML file (always starts with "tmp"), which I then Build to open the Chrome tab with the print dialog. Is there a way for "Browser Print" to Build and close the "tmp" HTML file so that I jump to the Chrome browser tab with print dialog? This would be helpful when printing many files.
  • I feel as though this feature existed in the past, but I cannot find any mention of it in the docs or Settings - Default file. I am currently using ST Build 3126 and Chrome Version 56.0.2924.87 (64-bit).

Cannot recognize the view setting "font_option"

Please read and fill out this template by replacing the instructions with appropriate information. If the template is not followed, the issue will be marked Invalid and closed.

Before submitting an issue search past issues and read the area of the documentation related to your specific question, issue, or request.


Description

The plugin cannot recognize the setting "font_option", for example, if I add the setting "font_options": ["no_italic"] for C language,ExportHtml cannot obey the setting.

Support Info

I open this issue for hoping you can add support for this setting.

Steps to Reproduce Issue

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.