CodeFlask icon indicating copy to clipboard operation
CodeFlask copied to clipboard

HTML API

Open LeaVerou opened this issue 10 years ago • 6 comments

First off, thanks for making this awesome plugin!

I suggest not requiring JavaScript for basic usage. Lots of people aren't comfortable with it. Have a codeflask class that when people use it, these elements are automatically made into editors.

Similarly, default language can just be defined on an ancestor, like <body class="language-css">: This is just basic Prism.js functionality, you don't even need to implement it yourself :) Just include it in the docs.

LeaVerou avatar Aug 18 '15 01:08 LeaVerou

Makes sense, I will implement it tomorrow.

kazzkiq avatar Aug 18 '15 02:08 kazzkiq

I think it could be done using WebComponents, for example creating a new "editor" or "codeflask" tag. For the default languaje, is better to use data attributes.

piranna avatar Oct 09 '15 06:10 piranna

#39 gracefully implements most of this request by using Web Components, however there still isn't an option to "put a class in body and highlight all codes in the page", so I will be keeping it open, for now.

kazzkiq avatar May 21 '17 03:05 kazzkiq

I will implement it tomorrow.

lobo avatar Mar 04 '19 16:03 lobo

Learning the hard way to never put a deadline to an OS issue.

Since CodeFlask v1+ removed #39 (in order to stay lean, wrappers and components should be totally new projects). I think it now makes sense to reimplement this directly into CodeFlask.

No deadlines, tho.

For anyone willing to help, I'm all for it.

kazzkiq avatar Mar 07 '19 12:03 kazzkiq

thanks for the honesty ;) @kazzkiq

lobo avatar Mar 07 '19 19:03 lobo