atom / highlights

Syntax highlighter
https://atom.github.io/highlights
MIT License
529 stars 54 forks source link

Unable to style method calls in atom #32

Open nisanthchunduru opened 8 years ago

nisanthchunduru commented 8 years ago

Hi

I was trying to style method calls while creating a syntax theme for atom. I realized it might not be possible to do it currently because of https://github.com/atom/atom/issues/9074#issue-110286384 The atom editor html is different from the html output of highlights. The atom editor html doesn't wrap method names in span tags. This difference prevents me from styling method calls in the syntax theme.

Are there any workarounds? Also, why is the editor html different from the html output of highlights? I'd like to solve this but I'm struggling to find the part of atom's codebase where the highlights package is used for syntax highlighting. Any pointers?

Thank you.