本文要推荐的[ToolFk]是一款程序员常用的线上免费测试工具箱,ToolFk 特点是专一于程序员平常的开发工具,不用安装任何软件,只要把内容贴上按一个执行按钮,就能获取到想要的内容结果。ToolFk还支持 BarCode条形码在线生成、 QueryList采集器、 PHP代码在线运行、 PHP混淆、加密、解密、 Python代码在线运行、JavaScript在线运行、YAML格式化工具、HTTP模拟查询工具、HTML在线工具箱、JavaScript在线工具箱、CSS在线工具箱、JSON在线工具箱、Unixtime时间戳转换、Base64/URL/Native2Ascii转换、CSV转换工具箱、XML在线工具箱、WebSocket在线工具、Markdown 在线工具箱、Htaccess2nginx 转换、进制在线转换、在线加密工具箱、在线伪原创工具、在线APK反编译、在线网页截图工具、在线随机密码生成、在线生成二维码Qrcode、在线Crontab表达式生成、在线短网址生成、在线计算器工具。等20多个平常程序员开发工具,算是一个很是全面的程序员工具箱网站。javascript
網站名稱:ToolFk
網站鏈結:www.toolfk.com/
工具连接:www.toolfk.com/tool-conver…php
本工具[在线Markdown转换HTML、HTML转Markdown工具]依赖的代码库https://github.com/domchristie/turndowncss
STEP 1html
STEP 2java
核心代码以下python
var sourceArea = toolfk.create_codeMirror('code');
var targetArea = toolfk.create_codeMirror('result');
$(".convert-btn-html").click(function(){
if (toolfk.beautify_default.beautify_in_progress) {
return;
}
var source = sourceArea.getValue();
if(source==''){
return layer.msg('@lang('toolfk.lang_context_not_empty')');
}
toolfk.beautify_default.beautify_in_progress = true;
var turndownService = new TurndownService();
var markdown = turndownService.turndown(source);
targetArea.setValue(markdown);
toolfk.report('Html2Markdown',source);
toolfk.beautify_default.beautify_in_progress = false;
});
$(".convert-btn-markdown").click(function(){
if (toolfk.beautify_default.beautify_in_progress) {
return;
}
var source = sourceArea.getValue();
if(source==''){
return layer.msg('@lang('toolfk.lang_context_not_empty')');
}
toolfk.beautify_default.beautify_in_progress = true;
var markdown = micromarkdown.parse(source);
targetArea.setValue(markdown);
toolfk.report('Markdown2Html',source);
toolfk.beautify_default.beautify_in_progress = false;
});复制代码
整合各種程序员开发中常用的开发测试工具。nginx
简洁美观大气的网站页面git
支持 在线格式化执行代码、APK在线反编译、在线高强度密码生成、在线网页截图 等二十多種工具服务程序员
同时还推荐一下它的姐妹网 www.videofk.com 视频下载工具箱 github