mariozaizar / language-eml Goto Github PK
View Code? Open in Web Editor NEWEmail syntax highlighting for Atom editor made by @mariozaizar
Home Page: https://atom.io/packages/language-eml
License: MIT License
Email syntax highlighting for Atom editor made by @mariozaizar
Home Page: https://atom.io/packages/language-eml
License: MIT License
When language-eml package is enabled, all editors have soft wrapping at 80 characters regardless of global settings or package level settings.
Expected behavior: [What you expect to happen]
Language-eml package should respect global and package level wrapping settings and only affect an editor when the content type is Email.
Actual behavior: [What actually happens]
Lines are wrapped at 80 character, no matter what the user puts in settings.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
OS: Microsoft Windows [Version 10.0.15063]
$ atom --version
Atom : 1.18.0
Electron: 1.3.15
Chrome : 52.0.2743.82
Node : 6.5.0
$ apm --version
apm 1.18.1
npm 3.10.10
node 6.9.5 x64
python 3.6.1
git 2.13.0.windows.1
visual studio
Whitespace chars (spaces, line endings) disappear when on and this package is enabled.
gif of the bug: http://recordit.co/DpW4atxszp
Expected behavior:
Actual behavior:
Whitespace chars (spaces, line endings) disappear when on and this package is enabled.
Reproduces how often:
100%
Atom : 1.16.0
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
macOS 10.12.4 (Sierra)
Does not get correct result if decode/encode Quoted-Printable/Base64 of non-UTF-8 text
When using encode/decode functions, it looks like the conversion defaults to to/from UTF-8.
中 - Ideograph central; center, middle; in the midst of; hit (target); attain CJK: U+4E2D - Unicode Character Table
https://unicode-table.com/en/4E2D/
What doesn't work -
What works -
UTF-16 BE (Doesn't Work)
The expect result is =4E=2D for 中.
UTF-8 (Works)
The expect result is =E4=B8=AD for 中.
Suggestion:
Get the character encoding from the file encoding setting from Atom. That is the encoding to be used to save the decoded result anyway, and is usually the encoding to be encoded from.
$ apm -version
apm 2.5.0
npm 6.14.5
node 10.20.1 x64
atom 1.51.0
python 3.7.4
git 2.28.0
N/A
N/A
HTML param value is being partially highlighted on Github, is not highlighted in Atom.
text/css">
Not highlighted
I haven't reproduced the issue in Atom. Please see the description.
We're considering (cf. github-linguist/linguist#4201) using this EML grammar to highlight all .eml
and .mbox
files on GitHub and GitLab. Unfortunately, the grammar's output has some errors (see Lightshow example) for quoted-printable encoding (if that's not obvious, I don't know much about EML).
I haven't tested under Atom yet, so it's possible the issue is only with GitHub's interpreter for grammars. GitHub uses a PCRE-based regular expression engine, which has a few differences in interpretation. I had a quick look at the grammar and did not spotted any though.
Expected behavior: Characters following the quoted-printable marker (=3D
) to be highlighted correctly.
Actual behavior: Characters following the quoted-printable marker are highlighted with a red background.
Reproduces how often: 100%
The highlighting bug happens with commit c9f354e of the present grammar.
Lightshow is a simple interface to test the highlighter used on GitHub.com. It simply takes the grammar provided and interprets it on the given example.
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.