jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
339 stars 39 forks source link

[Comment Enchancer] Move HTML into resource #33

Closed KOLANICH closed 10 years ago

KOLANICH commented 10 years ago

Don't you think that it is better to store HTML part into resource file?

jerone commented 10 years ago

Personally never liked adding resource files to my userscript. One of the issues I have is while developing a script, both @require and @resource require the files to be hosted before it can be used.

I do have used the feature before for libraries like jQuery as they are already hosted and to large to add as text.

For now there's no real advantage to move the HTML to a resource file.

Thanks for using this userscript!

KOLANICH commented 10 years ago

The real advantage is that it makes code better readable: you can open html part and enjoy syntax highlighting and you can open js part and enjoy syntax highlighting.

jerone commented 10 years ago

Will keep that in mind for the next script.