akira-cn/code-to-image
حول
Convert blocks of code to a highlighted jpeg base64 image.
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلCode to Image
Code to Image converts your blocks of code to a highlighted jpeg base64 image. And you can share it to any code-unfriendly website —— Such website doesn't support markdown or <pre><code> tag or anything else that can make your post contains any blocks of code in it.
It is much better than screen shot since you can pick a single image from very large code files. More than 40 programming languages can be highlighted and picked.
Example
Paste blocks of code to textarea and press Ctrl+D to pick image.
Installation
git clone https://github.com/akira-cn/code-to-image.git
cd code-to-image
npm install
Development
npm start
Compile & Release
npm run compile
Default languages
Default languages included bash; C; C++; C#; HTML; Java; JavaScript; XML; Perl; Python; Ruby; PHP;
Extensions
Other languages are supported via extensions:
Apollo; Basic; Clojure; CSS; Dart; Erlang; Go; Haskell; Lasso; Lisp, Scheme; Llvm; Logtalk; Lua; Matlab; MLs: F#, Ocaml,SML; Mumps; Nemerle; Pascal; Protocol buffers; R, S; RD; Rust; Scala; SQL; Swift; TCL; Latek; Visual Basic; VHDL; Wiki; XQ; YAML
Thanks
Thanks to code-prettify and html2canvas.
License (Multi-licensing)
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…