zerahuang / hello-world Goto Github PK
View Code? Open in Web Editor NEWtest
test
Markdown plugin for Sublime Text. Provides a decent Markdown color scheme (light and dark) with more robust syntax highlighting and useful Markdown editing features for Sublime Text. 3 flavors are supported: Standard Markdown, GitHub flavored Markdown, MultiMarkdown.
Dark and Yellow and ArcDark theme available, plus thirdparty themes. See configuration section to learn how to change the theme.
You can install MarkdownEditing either from Package Control (recommended) or manually. Package Control automatically download the package and keeps it up-to-date. Manual installation is required if you need to tweak the code.
If you are using Sublime Text 2, you have to disable the native package manually. To do that, add Markdown
to your ignored_packages
list in ST user settings:
"ignored_packages": [..., "Markdown"],
Getting "Error loading syntax file..."? See this.
The preferred method of installation is via Sublime Package Control.
install package
and hit Return. A list of available packages will be displayed.MarkdownEditing
and hit Return. The package will be downloaded to the appropriate directory.MarkdownEditing
in the Sublime Text Packages directory..../Sublime Text 3/Packages/MarkdownEditing/[files]
.You can access most features through Command Palette. You can launch it from Tools -> Command Palette...
. MarkdownEditing commands start with MarkdownEditing:
. And they are only visible when a markdown file is open and active.
`
will expand to `(cursor here)`
.*
, -
, +
in a cycle).mde.list_indent_bullets
).[]
or ()
pair for a link.Goto -> Goto Symbol in Project...
). They will start with #
, so you will know they belong to markdown files at a glance. Also they will be on top of the list because of the precedence of #
.Goto -> Goto Symbol...
)Find Next(Previous) Heading
command.~~
(strikethrough). When you for instance select the word "foo" and hit ~
, the result will be ~~foo~~
.#
when there's a selection will surround it with #
to make it a headline. Multiple presses add additional hashes, increasing the level of the header. Once you hit 6 hashes, it will reset to 0 on the next press. The mde.match_header_hashes
will determine if the #
are mirrored on both sides or just at the beginning of the line.mde.match_header_hashes
option in your settings to enable (disabled by default).Tab
. That is, typing Tab
on a line containing only =
or -
characters will add or remove enough characters to it to match the length of the line above.Wiki links are defined by surrounding a (wiki) word with double square brackets, for example:
[[SampleWikiPage]]
The user can open
wiki page using a sublime command. This will search the current open file's directory (and sub-directories) for a file with a matching name and a markdown extension. For example, opening the previous wiki link
will look for and open a file named:
SampleWikiPage.md
Note that, if the wiki page does not yet exist, if will be created with a header matching the page name. However the file will only actually be created on the file system, when it is saved by the user.
The user can list back links
and of course to open them. Back links are pages that reference the current page. This allows pages to be tied together into a personal wiki. A common technique is to define tag wiki pages and to list any tags for a page as references to the tag pages at the bottom of the page, for example:
[[TagSyntax]] [[TagDev]] [[TagPython]]
This allows the user to list all pages with a specific tag, by opening the tag page and list all back links.
Journal wiki pages are also supported. A journal page is just a wiki page with a name matching the current date.
Lastly the command to open the home page is provided, where the home page is just a wiki page named HomePage
.
OS X | Windows/Linux | Description |
---|---|---|
⌘⌥V | CtrlAltV | Creates or pastes the contents of the clipboard as an inline link on selected text. |
⌘⌥R | CtrlAltR | Creates or pastes the contents of the clipboard as a reference link. |
⌘⇧K | ShiftWinK | Creates or pastes the contents of the clipboard as an inline image on selected text. |
⌘⌥B ⌘⌥I | AltB AltI | These are bound to bold and italic. They work both with and without selections. If there is no selection, they will just transform the word under the cursor. These keybindings will unbold/unitalicize selection if it is already bold/italic. |
⌘^1...6 | Ctrl1...6 | These will add the corresponding number of hashmarks for headlines. Works on blank lines and selected text in tandem with the above headline tools. If you select an entire existing headline, the current hashmarks will be removed and replaced with the header level you requested. This command respects the mde.match_header_hashes preference setting. |
⌥⇧6 | AltShift6 | Inserts a footnote. |
⇧Tab | ShiftTab | Fold/Unfold current section. |
^⇧Tab | CtrlShiftTab | Fold all sections under headings of a certain level. |
⌘⌥PageUp ⌘⌥PageDown | CtrlAltShiftPageUp CtrlAltShiftPageDown | Go to the previous/next heading of the same or higher level |
⌘⇧PageUp ⌘⇧PageDown | CtrlShiftPageUp CtrlShiftPageDown | Go to the previous/next heading |
⌘⌥H | CtrlShiftH | Open home page |
⌘⌥D | CtrlShiftD | Open wiki page under the cursor |
⌘⌥J | CtrlShiftJ | Open journal page for today |
⌘⌥B | CtrlShiftB | List back links |
GFM means GitHub Flavored Markdown is the dialect of Markdown that is currently supported for user content on GitHub.com and GitHub Enterprise. It has some unique features:
Underscores in words doesn't mess with bold or italic style:
Fenced code blocks gets syntax highlighting inside:
Keyboard shortcuts gets highlighted like in GitHub:
Strikethrough is supported:
You can launch Command Palette from Tools -> Command Palette...
. MarkdownEditing commands start with MarkdownEditing:
. And they are only visible when a markdown file is open and active.
=
or -
characters as needed to match the lengths of their header text.[some link][some_ref]
and [some link][]
) and checks if they are all defined. If there are undefined link references, command will automatically create their definition snippet at the bottom of the file.Remeber you can Ctrl R (in document) and Ctrl Shift R (project-wise) for quick navigation for all headers.
The plugin contains 3 different Markdown flavors: Standard Markdown, GitHub flavored Markdown, MultiMarkdown. Default is GitHub flavored Markdown. If you want to set another one as default, open a Markdown file and select your flavor from the menu: View > Syntax > Open all with current extension as
. You're done.
You may want to have a look at the default settings files. They are located at:
Packages/MarkdownEditing/Markdown.sublime-settings [GitHub flavored Markdown]
Packages/MarkdownEditing/Markdown (Standard).sublime-settings
Packages/MarkdownEditing/MultiMarkdown.sublime-settings
If you want to override any of the default settings, you can open the appropriate user settings file using the Preferences > Package Settings > Markdown Editing
menu. Each flavor has a different settings file.
Bold and italic markers are configurable through ST shell variables. You can use Preferences > Package Settings > Markdown Editing
menu to see the default settings file. In order to override it, copy & paste its content into the user settings file (Packages/User/Bold and Italic Markers.tmPreferences
) from the menu and make your edits. It is pretty straightforward.
In order to activate the dark or the yellow theme, put one of these lines to your user settings file of the flavor (Packages/User/[flavor].sublime-settings
):
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Yellow.tmTheme",
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-ArcDark.tmTheme",
If you want to go with your already existing theme, you can reenable it with the same method as above. Keep in mind that, that theme may not cover all the parts of the Markdown syntax that this plugin defines.
By default, when you install the plugin, files with these extensions will be assigned to Markdown syntax: "md", "txt", "mdown", "markdown", "markdn". If you want to prevent any of these extensions to be opened as Markdown, follow these steps:
We are maintaining a tips section in our Wiki. Jump there to learn from others or share your experiences with others.
Sublime can be configured into a WYSIWYG (what you see is what you get) editor with two other plugins:
Install them if you haven't. Then
Now open palette and choose "Preview in Browser" and you will get a WYSIWYG editor.
Are you getting this error after installation: Error loading syntax file "Packages/Markdown/Markdown.tmLanguage": Unable to open Packages/Markdown/Markdown.tmLanguage?
This is caused by open markdown files at the install time. You have to manually change their syntax to your newly installed Markdown syntax. Read the below paragraph for more details on this.
Note: Sublime text has a native tiny package for Markdown. However, when MarkdownEditing is enabled, native package causes some conflicts. For this reason, MarkdownEditing will automatically disable it. Since it doesn't bring anything new over MarkdownEditing, this is not a loss. But remember, when you disable MarkdownEditing, you have to reenable the native one manually (if you want).
When you notice any undesired behavior introduced by the latest update, your feedback is always welcome in our issue page. However before it's fixed, you can rollback to an earlier version. Find the desired version and download the zip file, then follow manual installation guide
Knockdown offers useful Markdown features and a custom Markdown theme. All of its unique features except its theme are ported to MarkdownEditing and some of them are actually improved further in MarkdownEditing.
See https://packagecontrol.io/search/markdown for more.
Setext-style headers (===
and ---
) do not show up in the symbol list. This is due to a Sublime Text limitation (see #158). However, we are able to put a placeholder to indicate the existence of the header. We encourage you to use Atx-style headers (#
).
Installing for the first time while having markdown files opened may cause MarkdownEditing to behave unexpectedly on those files. Close and reopen those files to fix it.
See CONTRIBUTING.md
file.
MarkdownEditing was originally created by Brett Terpstra and has become a community project with the goal of consolidating the best features from the varied collection of Markdown packages for Sublime Text. Current development is headed up by Ali Ayas and Felix Hao.
Related blog posts from Brett:
This plugin contains portions of code from Knockdown.
Footnote commands were submitted by J. Nicholas Geist and originated at geekabouttown.
You can support contributors of this project individually. Every contributor is welcomed to add his/her line below with any content. Ordering shall be alphabetically by GitHub username.
MarkdownEditing is released under the MIT License.
政治
经济
基本经济常识
法律
科技
人文
国情地理
都市白领:工作比较繁忙,交友圈窄。无论男女,单身的比重都比较大。为了能获得靠谱的交友信息和资源,愿意和有能力付出一些报酬。
中间人(委托人认识的熟人、朋友。中间人是关键角色,需要承担给委托人牵线搭桥的任务)
A
)B
)委托人(有想通过中间人认识新的朋友需求的个体)
a
)b
)平台(给中间人发布委托人信息,寻找合适匹配的平台)
a
想通过自己认识的朋友--中间人A
,来找到满足自己条件的新的朋友(目标b
)。
A
自己认识的人中,就有满足a
要求的人,则可以直接介绍双方认识。+-----+ +-----+ +-----+
| | | | | |
| a +---> A +---> a |
| | | | | |
+-----+ +-----+ +-----+
A
自己认识的人中,没有满足a
要求的人,则可以通过平台,找到发布了满足a
要求的,另一个中间人B
(发布了b
信息的中间人)。并通过B
,介绍a
和b
双方互相认识。+-----+ +-----+ +-----+ +-----+
| | | | | | | |
| a +---> A <---> B <---+ b |
| | | | | | | |
+-----+ +-----+ +-----+ +-----+
中间人
获得报酬
对于整个流程来说,中间人非常重要。中间人需要完成以下工作:
a
),并了解a
们的诉求a
们的基本信息,按照一定规则(年龄,性别,年收入等等),发布到平台a
要求的b
,并联系b
内容的发布者B
,是否可以让a
和b
相互认识(当然B
需要问一下b
的意见)。在自己也咨询了a
,并获得同意之后。进入相互认识流程。b
和a
支付平台金币(介绍费)(双方都支付完成才算达成交易,只有一方支付的,时间超时,支付的金额会退回)(为了让大家都信守承诺,进入支付环节的时候,无法取消,如果不想交易,只能等待1天后,才会超时取消交易。期间a
无法做任何操作)。A
可以加B
为微信好友,双方各自把a
和b
拉进群里。并开场白,给各自的委托人,一个详细的介绍。由此可以让a
和b
自己加微信好友,开始聊天。a
和b
分别给自己的中间人发一个微信大红包。委托人和中间人在平台都确认之后,a
和b
才能继续其他的操作。a
和b
需要对对方的中间人(即B
和A
)进行信息准确性评价。主要有如下几种收益:
a
需要使用金币支付介绍费。金币从哪里来?a
可以在平台中自己购买,当然,也可以由A
卖给a
(价格由A
自己定)。A
(和B
)。这是A
的金币来源。积攒人脉
中间人在帮助了朋友达成交易之后,也可以选择不要红包,这是给自己赞人品。对方因此欠你一个人情。以后有什么朋友能帮得上中间人忙的时候,朋友一定会考虑。
委托人
发布委托人信息(Publish)
寻找合适的匹配(Search)
委托人支付介绍费(Pay)
建微信群,相互加好友交流(Connect)
交易成功(Success)
发感谢红包(ThankGift)
交易结束(Finish)
+-------------+ +-------------------------------------------------+
| Fail | | Cancel |
v | | v
+---------+ +----+---+ +---+-+ +----+----+ +---------+ +-----------+ +----+---+
| | | | | | | | | | | | | |
| Publish +---->+ Search +---->+ Pay +---->+ Connect +---->+ Success +---->+ ThankGift +---->+ Finish |
| | | | | | | | | | | | | |
+---------+ +--------+ +-----+ +---------+ +---------+ +-----------+ +--------+
注册认证
中间人注册页
委托人注册页
拉新&静态说明页
发布委托人信息(Publish)
发布委托信息页
委托人详情页
A
的信息,和A
发布内容的准确性评价分a
:等待匹配、多个b
意向匹配中、待支付、支付完成交流中(1天后可以选择终止,7天后,可以选择继续)、交易完成确认给感谢红包、交易完成评价B
发布的内容准确性。还能看到自己拥有的金币数和意向列表(双向)。b
:a
目前有多少人存在意向、我是否有意向(每个人同时可以发起5次意向匹配,7天不操作,自动失效。只要有一个场景,双方都有意向之后,其他的意向消失)、b
默认无法看到个性化文字,支付金币之后可以看到A
:a
目前的存在意向列表、a
的意向列表(最多5个)、意向匹配完成等待支付、双方支付完成显示B
微信号、7天后如果没有终止,确认后可以发起完成操作、收到感谢红包之后,确认结束交易B
:a
目前有多少人存在意向,可以手动操作,选择某个委托人加入意向中间人个人主页
a
存在意向,a
对多少人存在意向,a
当前的状态寻找合适的匹配(Search)
委托人支付介绍费(Pay)
建微信群,相互加好友交流(Connect)
交易成功(Success)
发感谢红包(ThankGift)
交易结束(Finish)
由以上可见,主要流程的页面有:
前端页面总共需要40+人/天
按照以往经验,后台也大概需要40+人/天
阿里云服务器预计200/月
域名:600/3年
前端使用taro做开发,可以生成小程序版本和H5版本
后台使用nodejs
数据库用mysql
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.