liulex / copyashtml Goto Github PK
View Code? Open in Web Editor NEWThis project forked from facelessuser/exporthtml
Copy code in Sublime Text with syntax highlighting
License: MIT License
This project forked from facelessuser/exporthtml
Copy code in Sublime Text with syntax highlighting
License: MIT License
It only sets the background color, not a complete background. Tried on Windows 10.
See my examples:
See also this attachment for clipboard raw data:
Detaildata.txt
When I try to copy, I can see this error:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1052, in run_
return self.run()
File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Installed Packages\Copy as HTML.sublime-package\CopyAsHtml.py", line 84, in run
File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Installed Packages\Copy as HTML.sublime-package\CopyAsHtml.py", line 341, in run
File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Installed Packages\Copy as HTML.sublime-package\CopyAsHtml.py", line 155, in setup
File "C:\Users\XXXX\AppData\Roaming\Sublime Text 3\Installed Packages\Copy as HTML.sublime-package\lib/color_scheme_matcher.py", line 72, in __init__
File "./python3.3/plistlib.py", line 104, in readPlistFromBytes
File "./python3.3/plistlib.py", line 76, in readPlist
File "./python3.3/plistlib.py", line 378, in parse
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0
And is not copying the text at all, not even with format, is not copying.
I'm using ST3 on Windows10
Thanks in advance.
Wondering if there is a way to embed spaces/tabs and new lines properly into the HTML, so that when Sublime (let's say from another user) sees it, it instantly is properly fomatted. As is, it's just a garbage blob.
test code:
def answer():
return 42
with Mariana
:
File "...\Copy as HTML.sublime-package\CopyAsHtml.py", line 84, in run
File "...\Copy as HTML.sublime-package\CopyAsHtml.py", line 341, in run
File "...\Copy as HTML.sublime-package\CopyAsHtml.py", line 155, in setup
File "...\Copy as HTML.sublime-package\lib/color_scheme_matcher.py", line 72, in __init__
File "sublime.py", line 199, in load_binary_resource
raise IOError("resource not found")
OSError: resource not found
with Monokai
:
...
File "...\Copy as HTML.sublime-package\lib/color_scheme_matcher.py", line 72, in __init__
File "./python3.3/plistlib.py", line 104, in readPlistFromBytes
File "./python3.3/plistlib.py", line 76, in readPlist
File "./python3.3/plistlib.py", line 378, in parse
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0
no error with third-party color schemes like Dracula
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.