Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1c8fc7

Browse files
Merge pull request#8701 from makiam/markdown-template
Add markdown file template
2 parentsb572b48 +04db2ea commitb1c8fc7

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

‎ide/markdown/licenseinfo.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@
3030
<licenseref="MIT-markdown" />
3131
<commenttype="COMMENT_UNSUPPORTED" />
3232
</fileset>
33+
<fileset>
34+
<file>src/org/netbeans/modules/markdown/resources/Template.md</file>
35+
<licenseref="Apache-2.0-ASF" />
36+
<commenttype="TEMPLATE_MINIMAL_IP" />
37+
</fileset>
3338
</licenseinfo>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
@TemplateRegistration(folder="Other",content="resources/Template.md",displayName="Markdown File",description="resources/Template.html",position=500,requireProject =false)
20+
packageorg.netbeans.modules.markdown;
21+
22+
importorg.netbeans.api.templates.TemplateRegistration;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!--
2+
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
20+
-->
21+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
22+
<htmllang="en">
23+
<head>
24+
<title>Markdown File</title>
25+
<metahttp-equiv="Content-Type"content="text/html; charset=UTF-8">
26+
</head>
27+
<body>
28+
Creates new Markdown file
29+
</body>
30+
</html>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#Markdown Cheat Sheet (Example File)
2+
3+
This is a**generic Markdown template** showcasing essential formatting features.
4+
5+
---
6+
7+
##1. Headers
8+
#H1 (Largest)
9+
##H2
10+
###H3
11+
####H4
12+
#####H5
13+
######H6 (Smallest)
14+
15+
---
16+
17+
##2. Text Formatting
18+
-**Bold** (`**text**` or`__text__`)
19+
-*Italic* (`*text*` or`_text_`)
20+
-~~Strikethrough~~ (`~~text~~`)
21+
-`Inline Code` (`` `code```)
22+
->Blockquote (prefix with`>`)
23+
24+
---
25+
26+
##3. Lists
27+
###Unordered List
28+
- Item 1
29+
- Item 2
30+
- Nested Item (indent with 2 spaces)
31+
32+
###Ordered List
33+
1. First item
34+
2. Second item
35+
1. Nested item (indent with 3 spaces)
36+
37+
###Task List
38+
-[x] Completed task
39+
-[ ] Pending task (`[ ]`)
40+
41+
---
42+
43+
##4. Links
44+
-[Hyperlink](https://example.com) (`[text](url)`)
45+
46+
---
47+
48+
##5. Code Blocks
49+
```java
50+
#Syntax-highlighted block (java)
51+
classHelloWorld {
52+
publicstaticmain(String...args) {
53+
System.out.println("Hello markdown");
54+
}
55+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp