| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| #=============================================================================# |
| # Copyright (c) 2007, 2021 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================# |
| --> |
| |
| <plugin> |
| |
| <extension point="org.eclipse.mylyn.wikitext.ui.contentAssist"> |
| <templates markupLanguage="CommonMark [StatET]"> |
| |
| <template name="# " |
| description="%templates_H1_description" |
| content="# ${text}\n\n" block="true"/> |
| <template name="## " |
| description="%templates_H2_description" |
| content="## ${text}\n\n" block="true"/> |
| <template name="### " |
| description="%templates_H3_description" |
| content="### ${text}\n\n" block="true"/> |
| <template name="#### " |
| description="%templates_H4_description" |
| content="#### ${text}\n\n" block="true"/> |
| <template name="##### " |
| description="%templates_H5_description" |
| content="##### ${text}\n\n" block="true"/> |
| <template name="###### " |
| description="%templates_H6_description" |
| content="###### ${text}\n\n" block="true"/> |
| |
| <template name="========= " |
| description="%templates_H1_Setext_description" |
| content="\n${text}\n====================\n\n" block="true"/> |
| <template name="--------- " |
| description="%templates_H2_Setext_description" |
| content="\n${text}\n--------------------\n\n" block="true"/> |
| |
| <template name="```" |
| description="%templates_CodeBlock_Fenced_description" |
| content="```\n${text}\n```\n\n" block="true"/> |
| |
| <template name="___" |
| description="%templates_ThematicBreak_description" |
| content="____________________\n\n" block="true"/> |
| |
| <template name="* " |
| description="%templates_BulletList_description" |
| content="* ${text}\n* ${text2}\n\n" block="true"/> |
| <template name="1. " |
| description="%templates_OrderedList_1_description" |
| content="1. ${text}\n2. ${text2}\n\n" block="true"/> |
| <template name="1) " |
| description="%templates_OrderedList_2_description" |
| content="1) ${text}\n2) ${text2}\n\n" block="true"/> |
| |
| |
| <template name="*" |
| description="%templates_Emphasis_description" |
| content="*${text}* $"/> |
| <template name="**" |
| description="%templates_StrongEmphasis_description" |
| content="**${text}** $"/> |
| <template name="_" |
| description="%templates_Emphasis_description" |
| content="_${text}_ $"/> |
| <template name="__" |
| description="%templates_StrongEmphasis_description" |
| content="__${text}__ $"/> |
| |
| <template name="`" |
| description="%templates_CodeSpan_description" |
| content="`${text}` $"/> |
| |
| <template name="<http://example.com>" |
| description="%templates_Link_description" |
| content="<${uri}> $"/> |
| <template name="[link](http://example.com)" |
| description="%templates_Link_description" |
| content="[${text}](${uri}) $"/> |
| <template name="[link](http://example.com "title")" |
| description="%templates_Link_WithTitle_description" |
| content="[${text}](${uri} "${title}") $"/> |
| |
| <template name="" |
| description="%templates_Image_description" |
| content=" $"/> |
| <template name="" |
| description="%templates_Image_WithTitle_description" |
| content=" $"/> |
| |
| <template name="<!-- -->" |
| description="%templates_Comment_description" |
| content="<!-- ${text} -->\n$"/> |
| |
| </templates> |
| </extension> |
| |
| <extension |
| point="org.eclipse.mylyn.wikitext.ui.cheatSheet"> |
| <content |
| markupLanguage="CommonMark [StatET]" |
| resource="help/cheatSheet/CommonMark.html"> |
| </content> |
| </extension> |
| |
| </plugin> |