atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

Feature request: allow stringEOL style ( ##this is a stringEOL ) #250

Closed WiliTest closed 6 years ago

WiliTest commented 6 years ago

It would be great to be able to use the stringeol style:

this is a code block header

this is a comment (stringEOL)

This stack answer talk about it.

ambv commented 6 years ago

Never heard of "STRINGEOL". What is it? The StackOverflow post doesn't answer this. It lists some obscure feature (or bug?) of Notepad++.

Doxygen is used very rarely in the Python community so I don't see value in styling it differently.

WiliTest commented 6 years ago

Thanks for your reply ! Stringeol would be simply allow to have 2 types of comments style. So you could, for instance, use some font style for the #normal comments and some other font style for the ##comments Look at this print screen (from notepad++): image

Arcanemagus commented 6 years ago

Everything I'm seeing shows this as a custom "feature" (bug in the parser combining a feature from another language) for Notepad++.

What official Python documentation can you provide justifying this functionality?


Note: "eol" almost always means "End of Line" and talks about the characters used to denote the end of a line in a file (eg. CRLF, or LF typically), "STRINGEOL" doesn't make much sense.

WiliTest commented 6 years ago

I'm surprised I did not find it in the official document, I just find it very handy. So I'll see if I can customize it myself, sorry to have wasted your time, and thanks a lot for your awesome work!

50Wliu commented 6 years ago

Yes, I would consider creating a custom grammar package for this that hooks into (injects) or includes language-python.