Caret Plugin::Table Tools Chrome 插件, crx 扩展下载

 收录于4年前 阅读数 23

扩展ID: npkbhkdbgkoanfjllmookbonhfpckdel

This plugin is a collection of table tools in Caret Editor.This Caret plugin currently allows for CSV to be converted to Markdown and  Markdown table formatting. Eventually it will allow for HTML formatting as well.

For all issues please see GitHub
https://github.com/DanShrader/Caret-Plugin-Table-Tools

The options for CSV To Markdown Table (https://github.com/donatj/CsvToMarkdownTable) are passed via "optionsCSV"

Note: the pattern for formatting a Markdown Table is influenced by CSV To Markdown Table.

To use with Caret

You'll need to add the following to your api.json file, under settings menu. This plugin can pass the same options that JS-Beautify does in the 'options' tag. Note: The id is the id found under extensions.

api.json

{
	"sampleMessage": {
		"id": "extension id goes here",
		"message": {
			"data": "message can be any JSON object passable to chrome.runtime.sendMessageExternal"
		}
	},"CSV-to-MD": {
		"id": "gaonahnbhbpdimakadahmbogdfdhlifg",
		"message": {
		  "command":"CSV-to-MD",
			"optionsCSV": {
				// "deliminator": "\t", //tab
				"deliminator": ",", //,
				// "header": false
				"header": true
			}
		},
		"sendEditorContext": true
	}
	,"Pretty-MD": {
		"id": "gaonahnbhbpdimakadahmbogdfdhlifg",
	  "message": {
	    "command":"Pretty-MD"
	  },
		"sendEditorContext": true
	}
}
menus.json

This is optional, but allows the command to be accessable in menu system.

{
	"label": "MD Table Beautify",
	"command": "api:execute",
	"argument": "Pretty-MD"
},
{
	"label": "Format SQL",
	"command": "api:execute",
	"argument": "format-SQL"
}
The following have contributed works

Without the following, this plug-in would not exist. Thanks to their works.

Caret
CSV To Markdown Table - their pattern is the base for the markdown formatting.
名称 Caret Plugin::Table Tools
插件标识 npkbhkdbgkoanfjllmookbonhfpckdel
平台 Chrome
评分 0
评分人数 2
插件主页

作者 Dan Shrader
版本号 1.0.0
大小 5.7 KB
官网下载次数 80
下载地址
更新时间 2017-07-03 00:00:00
举报
回复

大家在找这些插件