Skip to content

Commit 2086d75

Browse files
author
Mark Vincent
authored
Merge pull request #12 from WildcardSearch/minor
0.2 BETA Release
2 parents a75fcfc + beef184 commit 2086d75

File tree

7 files changed

+320
-94
lines changed

7 files changed

+320
-94
lines changed

README.md

+38-6
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
1-
# BB Code Helper 0.1
1+
# BB Code Helper 0.2
22

3-
Adds a context submenu to tag code, quotes, images, and links as BB Code to be pasted into forum posts.
3+
Adds a context submenu to tag code, quotes, images, and links as BB Code or Markdown.
44

55
## Options
66

77
You may configure how many line breaks you would like inserted between tags when using `Multi-Mode`
88

99
## Quoting
1010

11-
Highlight text and choose `Quote Selection` from the `BB Code Helper` context submenu to copy the text as a forum quote using BB Code
11+
Highlight text and choose `Quote Selection` from the `BB Code Helper` context submenu to copy the text as a forum quote using BB Code or Markdown.
1212

1313
```
1414
[quote]{selection}[/quote]
1515
```
1616

17+
OR
18+
19+
```
20+
> {selection}
21+
```
22+
1723
## Code Blocks
1824

19-
Highlight text and choose `Copy As Code` from the `BB Code Helper` context submenu to copy the text as a code block using BB Code
25+
Highlight text and choose `Copy As Code` from the `BB Code Helper` context submenu to copy the text as a code block using BB Code or Markdown.
2026

2127
```
2228
[code]{selection}[/code]
2329
```
2430

31+
OR
32+
33+
```
34+
``` 
35+
{selection}
36+
``` 
37+
```
38+
2539
## Links
2640

27-
Right click a link and select `Tag Link` from the `BB Code Helper` context submenu to copy a BB Code representation of the link to the clipboard. If there is text inside the `<a/>`, it will be used as a caption for the BB Code, if not, the simple version will be used.
41+
Right click a link and select `Tag Link` from the `BB Code Helper` context submenu to copy a BB Code representation of the link to the clipboard. If there is text inside the `<a/>`, it will be used as a caption for the BB Code or Markdown, if not, the simple version will be used.
2842

2943
```
3044
[url={URL}]{Caption}[/url]
@@ -34,20 +48,38 @@ OR
3448
[url]{URL}[/url]
3549
```
3650

51+
OR
52+
53+
```
54+
[{caption}]({url})
55+
```
56+
3757
## Images
3858

39-
Right click an image and select `Tag Image` or `Tag Image With Link` from the `BB Code Helper` context submenu to copy a BB Code representation of the image to the clipboard.
59+
Right click an image and select `Tag Image` or `Tag Image With Link` from the `BB Code Helper` context submenu to copy a BB Code or Markdown representation of the image to the clipboard.
4060

4161
```
4262
[img]{image URL}[/img]
4363
```
4464

65+
OR
66+
67+
```
68+
![]({url})
69+
```
70+
4571
If tagging the image and the link (if any), the link will be wrapped in `url` BB Code.
4672

4773
```
4874
[url={link URL}][img]{image URL}[/img][/url]
4975
```
5076

77+
OR
78+
79+
```
80+
[![]({image URL})]({link URL})
81+
```
82+
5183
## Multi-Mode
5284

5385
In this mode, tags are appended to the clipboard, rather than replacing the current clipboard content (default)

_locales/en/messages.json

+21-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66

77
"extensionDescription": {
8-
"message": "Adds a context submenu to tag quotes, images, and links as BB Code to be pasted into forum posts.",
8+
"message": "Adds a context submenu to tag quotes, images, and links as BB Code or Markdown",
99
"description": "Description of the add-on."
1010
},
1111

@@ -44,6 +44,26 @@
4444
"description": "Title of context menu item that clears the clipboard when clicked."
4545
},
4646

47+
"labelTitleBar": {
48+
"message": "BB Code Helper Settings",
49+
"description": "Title of options page label."
50+
},
51+
52+
"optionBbCode": {
53+
"message": "BB Code",
54+
"description": "Title of option to output as BB Code."
55+
},
56+
57+
"optionMarkdown": {
58+
"message": "Markdown",
59+
"description": "Title of option to output as Markdown."
60+
},
61+
62+
"labelOutputFormat": {
63+
"message": "Choose to tag as BB Code or Markdown:",
64+
"description": "Title of options page label for the output format setting."
65+
},
66+
4767
"labelLineBreaks": {
4868
"message": "Choose how many line breaks to insert between tags:",
4969
"description": "Title of options page label for the line breaks setting."

0 commit comments

Comments
 (0)