support more bbcode tags

audio/video/hide/hr/strikethrough
This commit is contained in:
NekoCH
2024-04-17 13:56:24 +08:00
parent 2447469ea0
commit 08f879a5b9
5 changed files with 131 additions and 5 deletions
+21 -1
View File
@@ -22,6 +22,14 @@ $lang_tags = array
'text_underline_description' => "Makes the enclosed text underlined.",
'text_underline_syntax' => "[u]<i>Text</i>[/u]",
'text_underline_example' => "[u]This is underlined text.[/u]",
'text_strikethrough' => "Strikethrough",
'text_strikethrough_description' => "Makes the enclosed text strikethrough.",
'text_strikethrough_syntax' => "[s]<i>Text</i>[/s]",
'text_strikethrough_example' => "[s]This is strikethrough text.[/s]",
'text_hide' => 'Hidden',
'text_hide_description' => 'Makes the enclosed text hidden',
'text_hide_syntax' => '[hide]<i>Text</i>[/hide]',
'text_hide_example' => '[hide]I tried so hard and got so far[/hide]',
'text_color_one' => "Color (alt. 1)",
'text_color_one_description' => "Changes the color of the enclosed text.",
'text_color_one_syntax' => "[color=<i>Color</i>]<i>Text</i>[/color]",
@@ -114,7 +122,15 @@ $lang_tags = array
'text_youtube' => "YouTube",
'text_youtube_description' => "Insert YouTube online video in webpages",
'text_youtube_syntax' => "[youtube,width,height]Video URL on YouTube[/youtube]",
'text_youtube_example' => "[youtube,560,315]https://www.youtube.com/watch?v=DWDL3VTCcCg&ab_channel=ESPNMMA[/youtube]",
'text_youtube_example' => "[youtube,560,315]https://www.youtube.com/watch?v=dQw4w9WgXcQ[/youtube]",
'text_video' => "Video",
'text_video_description' => "Insert HTML5 video player",
'text_video_syntax' => "[video,width,height]Video URL[/video]",
'text_video_example' => "[video]https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm[/video]",
'text_audio' => "Audio",
'text_audio_description' => "Insert HTML5 audio player",
'text_audio_syntax' => "[audio]Audio URL[/audio]",
'text_audio_example' => "[audio]https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3[/audio]",
'text_youku' => "YouKu",
'text_youku_description' => "Insert YouKu online video in webpages",
'text_youku_syntax' => "[youku]Video URL on YouKu[/youku]",
@@ -132,6 +148,10 @@ $lang_tags = array
'text_spoiler_description' => 'Insert expandable/collapsible content on the page',
'text_spoiler_syntax' => '[spoiler=title]This is the folded content[/spoiler]',
'text_spoiler_example' => '[spoiler=What happened to the final ending of the hero?]The hero died last![/spoiler]',
'text_hr' => 'Horizontal rule',
'text_hr_description' => 'Insert horizontal rule content on the page',
'text_hr_syntax' => '[hr]',
'text_hr_example' => 'Never gonna give you up[hr]Never gonna let you down',
'text_left' => 'Text align left',
'text_left_description' => 'Insert left-justified content on the page',