2023-05-25 10:46:07 +00:00
<!DOCTYPE html>
2023-11-28 21:01:15 +00:00
< html lang = "art-pir" dir = "rtl" >
2023-05-25 10:46:07 +00:00
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" >
2024-04-21 21:20:20 +00:00
< meta name = "generator" content = "Hugo 0.125.2" >
2024-04-07 21:49:57 +00:00
< meta name = "generator" content = "Relearn 5.27.0+tip" >
2023-05-25 10:46:07 +00:00
< meta name = "description" content = "Documentation for Hugo Relearn Theme" >
2023-10-10 21:22:41 +00:00
< meta name = "author" content = "Sören Weber" >
2023-10-11 16:03:03 +00:00
< meta name = "twitter:card" content = "summary_large_image" >
2024-02-24 13:03:50 +00:00
< meta name = "twitter:image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2023-10-11 16:03:03 +00:00
< meta name = "twitter:title" content = "Tab :: Cap'n Hugo Relearrrn Theme" >
< meta name = "twitter:description" content = "Ye can use a tab shortcode t & # 39 ; display a single tab .
This be especially useful if ye want t' flag yer code example wit' an explicit language.
If ye want multiple tabs grouped together ye can wrap yer tabs into th' tabs shortcode.
​ c printf(" Hello World!" ); Usage While th' examples be us' n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials.">
2024-04-07 13:13:19 +00:00
< meta property = "og:url" content = "https://mcshelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html" >
< meta property = "og:site_name" content = "Cap'n Hugo Relearrrn Theme" >
2023-10-11 15:32:39 +00:00
< meta property = "og:title" content = "Tab :: Cap'n Hugo Relearrrn Theme" >
2023-10-10 21:21:09 +00:00
< meta property = "og:description" content = "Ye can use a tab shortcode t & # 39 ; display a single tab .
2023-10-11 15:32:39 +00:00
This be especially useful if ye want t' flag yer code example wit' an explicit language.
If ye want multiple tabs grouped together ye can wrap yer tabs into th' tabs shortcode.
2024-04-07 13:13:19 +00:00
& #8203; c printf(& #34;Hello World!& #34;); Usage While th' examples be us' n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials.">
< meta property = "og:locale" content = "art-pir" >
2023-10-11 15:32:39 +00:00
< meta property = "og:type" content = "article" >
< meta property = "article:section" content = "Shorrrtcodes :: Cap'n Hugo Relearrrn Theme" >
2024-04-07 13:13:19 +00:00
< meta property = "og:image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2023-05-25 10:46:07 +00:00
< title > Tab :: Cap' n Hugo Relearrrn Theme< / title >
2024-02-24 13:03:50 +00:00
< link href = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/tab/index.html" rel = "alternate" hreflang = "x-default" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/tab/index.html" rel = "alternate" hreflang = "en" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html" rel = "alternate" hreflang = "art-pir" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/pir/shortcodes/tab/index.html" rel = "canonical" type = "text/html" title = "Tab :: Cap'n Hugo Relearrrn Theme" >
2024-02-24 12:50:21 +00:00
< link href = "/hugo-theme-relearn/pir/shortcodes/tab/index.xml" rel = "alternate" type = "application/rss+xml" title = "Tab :: Cap'n Hugo Relearrrn Theme" >
2024-04-21 21:48:09 +00:00
< link href = "/hugo-theme-relearn/images/logo.svg?1713736083" rel = "icon" type = "image/svg+xml" >
2023-05-25 10:46:07 +00:00
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how - to - use -->
2024-04-21 21:48:09 +00:00
< link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1713736086" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1713736086" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/nucleus.css?1713736086" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/auto-complete.css?1713736086" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/auto-complete.css?1713736086" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713736086" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/fonts.css?1713736086" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fonts.css?1713736086" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/theme.css?1713736086" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/theme-relearn-auto.css?1713736086" rel = "stylesheet" id = "R-variant-style" >
< link href = "/hugo-theme-relearn/css/chroma-relearn-auto.css?1713736086" rel = "stylesheet" id = "R-variant-chroma-style" >
< link href = "/hugo-theme-relearn/css/variant.css?1713736086" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/print.css?1713736086" rel = "stylesheet" media = "print" >
< link href = "/hugo-theme-relearn/css/format-print.css?1713736086" rel = "stylesheet" >
< script src = "/hugo-theme-relearn/js/variant.js?1713736086" > < / script >
2024-03-16 13:44:28 +00:00
< script >
2023-11-16 22:53:34 +00:00
window.relearn = window.relearn || {};
2024-03-18 20:59:19 +00:00
window.relearn.relBasePath='..\/..\/..';
window.relearn.relBaseUri='..\/..\/..\/..';
window.relearn.absBaseUri='https:\/\/mcshelby.github.io\/hugo-theme-relearn';
2024-03-16 12:40:13 +00:00
window.index_js_url="/hugo-theme-relearn/pir/index.search.js";
2023-11-16 22:53:34 +00:00
// variant stuff
2024-04-19 06:38:17 +00:00
window.variants & & variants.init( [ 'relearn-auto', 'relearn-light', 'relearn-dark', 'relearn-bright', 'zen-auto', 'zen-light', 'zen-dark', 'retro-auto', 'neon', 'learn', 'blue', 'green', 'red' ] );
2023-11-16 22:53:34 +00:00
// translations
window.T_Copy_to_clipboard = `Copy t' clipboard`;
window.T_Copied_to_clipboard = `Copied t' clipboard!`;
window.T_Copy_link_to_clipboard = `Copy link t' clipboard`;
window.T_Link_copied_to_clipboard = `Copied link t' clipboard!`;
window.T_Reset_view = `Rrreset view`;
window.T_View_reset = `View rrreset!`;
window.T_No_results_found = `No rrresults found fer "{0}"`;
window.T_N_results_found = `{1} rrresults found fer "{0}"`;
2023-05-25 10:46:07 +00:00
< / script >
< style >
2023-09-23 08:19:35 +00:00
#R-body img.bg-white {
2023-05-25 10:46:07 +00:00
background-color: white;
}
< / style >
< / head >
2024-02-24 12:50:21 +00:00
< body class = "mobile-support print disableInlineCopyToClipboard" data-url = "/hugo-theme-relearn/pir/shortcodes/tab/index.html" >
2023-09-23 08:19:35 +00:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
2023-09-18 18:49:44 +00:00
< div class = "topbar-wrapper" >
2023-09-13 21:30:04 +00:00
< div class = "topbar-sidebar-divider" > < / div >
2023-09-18 18:49:44 +00:00
< div class = "topbar-area topbar-area-start" data-area = "start" >
2023-12-05 07:41:41 +00:00
< div class = "topbar-button topbar-button-sidebar" data-content-empty = "disable" data-width-s = "show" data-width-m = "hide" data-width-l = "hide" > < button class = "topbar-control" onclick = "toggleNav()" type = "button" title = "Menu (CTRL+ALT+n)" > < i class = "fa-fw fas fa-bars" > < / i > < / button >
2023-09-12 21:10:21 +00:00
< / div >
2023-09-13 21:30:04 +00:00
< / div >
2023-09-20 22:28:27 +00:00
< ol class = "topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype = "http://schema.org/BreadcrumbList" > < li
2024-02-24 12:50:21 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< a itemprop = "item" href = "/hugo-theme-relearn/pir/shortcodes/index.html" > < span itemprop = "name" > Shorrrtcodes< / span > < / a > < meta itemprop = "position" content = "1" > > < / li > < li
2023-09-23 22:28:49 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< span itemprop = "name" > Tab< / span > < meta itemprop = "position" content = "2" > < / li >
2023-09-13 21:30:04 +00:00
< / ol >
2023-09-18 18:49:44 +00:00
< div class = "topbar-area topbar-area-end" data-area = "end" >
2024-04-07 19:58:38 +00:00
< div class = "topbar-button topbar-button-prev" data-content-empty = "disable" data-width-s = "show" data-width-m = "show" data-width-l = "show" > < a class = "topbar-control" href = "/hugo-theme-relearn/pir/shortcodes/siteparam/index.html" title = "SiteParam (🡒)" > < i class = "fa-fw fas fa-chevron-left" > < / i > < / a >
< / div >
< div class = "topbar-button topbar-button-next" data-content-empty = "disable" data-width-s = "show" data-width-m = "show" data-width-l = "show" > < a class = "topbar-control" href = "/hugo-theme-relearn/pir/shortcodes/tabs/index.html" title = "Tabs (🡐)" > < i class = "fa-fw fas fa-chevron-right" > < / i > < / a >
< / div >
2023-09-12 21:19:47 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / nav >
2023-09-23 08:19:35 +00:00
< div id = "R-main-overlay" > < / div >
< main id = "R-body-inner" class = "highlightable default" tabindex = "-1" >
2023-05-25 10:46:07 +00:00
< div class = "flex-block-wrapper" >
< article class = "default" >
< header class = "headline" >
< / header >
2024-04-07 19:58:38 +00:00
2023-05-25 10:46:07 +00:00
< h1 id = "tab" > Tab< / h1 >
< p > Ye can use a < code > tab< / code > shortcode t' display a single tab.< / p >
< p > This be especially useful if ye want t' flag yer code example wit' an explicit language.< / p >
2024-02-24 14:10:30 +00:00
< p > If ye want multiple tabs grouped together ye can wrap yer tabs into th' < a href = "/hugo-theme-relearn/pir/shortcodes/tabs/index.html" > < code > tabs< / code > shortcode< / a > .< / p >
2023-06-03 22:20:43 +00:00
2024-04-21 21:48:09 +00:00
< div class = "tab-panel" data-tab-group = "a78a5b8ffa581773c1fc9b5f1bc3f704" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="c"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-04-21 21:48:09 +00:00
onclick="switchTab('a78a5b8ffa581773c1fc9b5f1bc3f704','c')"
2023-05-25 10:46:07 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > c< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="c"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
< h2 id = "usage" > Usage< / h2 >
< p > While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shortcode from yer own partials.< / p >
2023-06-05 16:33:00 +00:00
< div class = "tab-panel" data-tab-group = "shortcode-parameter" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="shortcode"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2023-05-25 10:46:07 +00:00
onclick="switchTab('shortcode-parameter','shortcode')"
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > shortcode< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< button
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial"
2023-05-25 10:46:07 +00:00
onclick="switchTab('shortcode-parameter','partial')"
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > partial< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="shortcode"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " c" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-05-25 10:46:07 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```c
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< div
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "nx" > partial< / span > < span class = "s" > " shortcodes/tab.html" < / span > < span class = "p" > (< / span > < span class = "nx" > dict< / span >
2023-07-27 15:06:14 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " page" < / span > < span class = "p" > .< / span >
2023-06-05 22:32:57 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " title" < / span > < span class = "s" > " c" < / span >
2023-06-03 21:51:49 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " content" < / span > < span class = "p" > (< / span > < span class = "s" > " ```c\nprintf(\" Hello World!\" )\n```" < / span > < span class = "p" > |< / span > < span class = "p" > .< / span > < span class = "nx" > RenderStr'n< / span > < span class = "p" > )< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > )}}< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
< h3 id = "parameter" > Parameter< / h3 >
< table >
< thead >
< tr >
2023-07-27 15:06:14 +00:00
< th > Name< / th >
< th > Default< / th >
< th > Notes< / th >
2023-05-25 10:46:07 +00:00
< / tr >
< / thead >
< tbody >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > style< / strong > < / td >
< td > see notes< / td >
< td > Th' style scheme used fer th' tab. If ye don’ t set a style an' ye display a single code block inside o' th' tab, its default styl'n will adapt t' that o' a < code > code< / code > block. Otherwise < code > default< / code > be used.< br > < br > - by severity: < code > info< / code > , < code > note< / code > , < code > tip< / code > , < code > warning< / code > < br > - by brand color: < code > primary< / code > , < code > secondary< / code > , < code > accent< / code > < br > - by color: < code > blue< / code > , < code > green< / code > , < code > grey< / code > , < code > orange< / code > , < code > red< / code > < br > - by special color: < code > default< / code > , < code > transparent< / code > , < code > code< / code > < / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > color< / strong > < / td >
< td > see notes< / td >
2024-04-21 21:48:09 +00:00
< td > Th' < a href = "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value" rel = "external" target = "_self" > CSS color value< / a > t' be used. If not set, th' chosen color depends on th' < strong > style< / strong > . Any given value will overwrite th' default.< br > < br > - fer severity styles: a nice match'n color fer th' severity< br > - fer all other styles: th' correspond'n color< / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > title< / strong > < / td >
< td > see notes< / td >
< td > Arbitrary title fer th' tab. Depend'n on th' < strong > style< / strong > there may be a default title. Any given value will overwrite th' default.< br > < br > - fer severity styles: th' match'n title fer th' severity< br > - fer all other styles: < em > < empty> < / em > < br > < br > If ye want no title fer a severity style, ye have t' set this parameter t' < code > " " < / code > (a non empty str'n filled wit' spaces)< / td >
2023-06-05 22:32:57 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < strong > ay'con< / strong > < / td >
< td > see notes< / td >
2024-02-24 14:10:30 +00:00
< td > < a href = "/hugo-theme-relearn/pir/shortcodes/icon/index.html#finding-an-icon" > Font Awesome ay'con name< / a > set t' th' left o' th' title. Depend'n on th' < strong > style< / strong > there may be a default ay'con. Any given value will overwrite th' default.< br > < br > - fer severity styles: a nice match'n ay'con fer th' severity< br > - fer all other styles: < em > < empty> < / em > < br > < br > If ye want no ay'con fer a severity style, ye have t' set this parameter t' < code > " " < / code > (a non empty str'n filled wit' spaces)< / td >
2023-05-25 10:46:07 +00:00
< / tr >
< tr >
2023-07-27 15:06:14 +00:00
< td > < em > < strong > < content> < / strong > < / em > < / td >
< td > < em > < empty> < / em > < / td >
< td > Arbitrary text t' be displayed 'n th' tab.< / td >
2023-05-25 10:46:07 +00:00
< / tr >
< / tbody >
< / table >
< h2 id = "examples" > Examples< / h2 >
2023-06-05 22:32:57 +00:00
< h3 id = "single-code-block-with-collapsed-margins" > Single Code Block wit' Collapsed Margins< / h3 >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Code" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-08-12 23:25:30 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```python
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2024-04-21 21:48:09 +00:00
< div class = "tab-panel" data-tab-group = "f4dabcffaacaded4b68ecd53b7ba5bce" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="code"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-04-21 21:48:09 +00:00
onclick="switchTab('f4dabcffaacaded4b68ecd53b7ba5bce','code')"
2023-05-25 10:46:07 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > Code< / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
2023-09-05 11:10:04 +00:00
data-tab-item="code"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
2023-06-05 22:32:57 +00:00
< h3 id = "mixed-markdown-content" > Mixed Marrrkdown Rrrambl'n< / h3 >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " _**Mixed**_" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-08-12 23:25:30 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "nx" > tab< / span > < span class = "nx" > can< / span > < span class = "nx" > not< / span > < span class = "nx" > only< / span > < span class = "nx" > contain< / span > < span class = "nx" > code< / span > < span class = "nx" > but< / span > < span class = "nx" > arbitrary< / span > < span class = "nx" > text< / span > < span class = "p" > .< / span > < span class = "nx" > In< / span > < span class = "nx" > this< / span > < span class = "k" > case< / span > < span class = "nx" > text< / span > < span class = "o" > **< / span > < span class = "nx" > an'< / span > < span class = "o" > **< / span > < span class = "nx" > code< / span > < span class = "nx" > will< / span > < span class = "nx" > get< / span > < span class = "nx" > a< / span > < span class = "nx" > margin< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```python
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > printf(" Hello World!" );
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2024-04-21 21:48:09 +00:00
< div class = "tab-panel" data-tab-group = "811527c7fe00a28c76c65628b465a16c" >
2023-05-25 10:46:07 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-05-25 10:46:07 +00:00
< button
2023-09-30 19:51:47 +00:00
data-tab-item="mixed"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-04-21 21:48:09 +00:00
onclick="switchTab('811527c7fe00a28c76c65628b465a16c','mixed')"
2023-05-25 10:46:07 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > < em > < strong > Mixed< / strong > < / em > < / span >
2023-06-04 22:28:49 +00:00
< / button >
2023-05-25 10:46:07 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-05-25 10:46:07 +00:00
< div
2023-09-30 19:51:47 +00:00
data-tab-item="mixed"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2023-06-04 22:25:27 +00:00
2023-08-12 23:25:30 +00:00
< p > A tab can not only contain code but arbitrary text. In this case text < strong > an'< / strong > code will get a margin.< / p >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-python" data-lang = "python" > < span class = "line" > < span class = "cl" > < span class = "n" > printf< / span > < span class = "p" > (< / span > < span class = "s2" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-05-25 10:46:07 +00:00
< / div >
< / div >
2023-06-05 22:32:57 +00:00
< h3 id = "understanding-style-and-color-behavior" > Understand'n < code > style< / code > an' < code > color< / code > Behavior< / h3 >
< p > Th' < code > style< / code > parameter affects how th' < code > color< / code > parameter be applied.< / p >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< < / span > < span class = "nx" > tabs< / span > < span class = "p" > > }}< / span >
2023-06-05 22:32:57 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just colored style" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Th'< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > be< / span > < span class = "nx" > set< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > color< / span > < span class = "nx" > style< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > th'< / span > < span class = "nx" > background< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > o'< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > style< / span > < span class = "nx" > color< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "nx" > 'n< / span > < span class = "nx" > yer< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just color" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Only< / span > < span class = "nx" > th'< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > be< / span > < span class = "nx" > set< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > th'< / span > < span class = "nx" > background< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > o'< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > CSS< / span > < span class = "nx" > color< / span > < span class = "nx" > value< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " default style an' color" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " default" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Th'< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > affects< / span > < span class = "nx" > how< / span > < span class = "nx" > th'< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > be< / span > < span class = "nx" > applied< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Th'< / span > < span class = "s" > `default`< / span > < span class = "nx" > style< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > th'< / span > < span class = "nx" > background< / span > < span class = "nx" > t'< / span > < span class = "nx" > yer< / span > < span class = "s" > `--MAIN-BG-color`< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "k" > fer< / span > < span class = "nx" > yer< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "nx" > resembl'n< / span > < span class = "nx" > th'< / span > < span class = "k" > default< / span > < span class = "nx" > style< / span > < span class = "nx" > but< / span > < span class = "nx" > wit'< / span > < span class = "nx" > different< / span > < span class = "nx" > color< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " just severity style" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " info" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Th'< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > be< / span > < span class = "nx" > set< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > severity< / span > < span class = "nx" > style< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > th'< / span > < span class = "nx" > background< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > o'< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > style< / span > < span class = "nx" > color< / span > < span class = "nx" > as< / span > < span class = "nx" > configured< / span > < span class = "nx" > 'n< / span > < span class = "nx" > yer< / span > < span class = "nx" > theme< / span > < span class = "nx" > variant< / span > < span class = "nx" > an'< / span > < span class = "nx" > also< / span > < span class = "nx" > affects< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > ay'con< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > tab< / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " severity style an' color" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " info" < / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Th'< / span > < span class = "s" > `style`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > affects< / span > < span class = "nx" > how< / span > < span class = "nx" > th'< / span > < span class = "s" > `color`< / span > < span class = "nx" > parameter< / span > < span class = "nx" > be< / span > < span class = "nx" > applied< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > This< / span > < span class = "nx" > will< / span > < span class = "nx" > set< / span > < span class = "nx" > th'< / span > < span class = "nx" > background< / span > < span class = "nx" > t'< / span > < span class = "nx" > a< / span > < span class = "nx" > lighter< / span > < span class = "nx" > version< / span > < span class = "nx" > o'< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > CSS< / span > < span class = "nx" > color< / span > < span class = "nx" > value< / span > < span class = "nx" > an'< / span > < span class = "nx" > also< / span > < span class = "nx" > affects< / span > < span class = "nx" > th'< / span > < span class = "nx" > chosen< / span > < span class = "nx" > ay'con< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > tab< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< < / span > < span class = "o" > /< / span > < span class = "nx" > tabs< / span > < span class = "p" > > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2024-04-21 21:48:09 +00:00
< div class = "tab-panel" data-tab-group = "ff95a4f50c49bb9bd9f4fe231e224551" >
2023-06-05 22:32:57 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2023-06-05 22:32:57 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-colored-style"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle blue active" tabindex="-1"
2024-04-21 21:48:09 +00:00
onclick="switchTab('ff95a4f50c49bb9bd9f4fe231e224551','just-colored-style')"
2023-06-05 22:32:57 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > just colored style< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-color"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle filled" style="--VARIABLE-BOX-color: blue;"
2024-04-21 21:48:09 +00:00
onclick="switchTab('ff95a4f50c49bb9bd9f4fe231e224551','just-color')"
2023-06-05 22:32:57 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > just color< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="default-style-and-color"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle default" style="--VARIABLE-BOX-color: blue;"
2024-04-21 21:48:09 +00:00
onclick="switchTab('ff95a4f50c49bb9bd9f4fe231e224551','default-style-and-color')"
2023-06-05 22:32:57 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > default style an' color< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="just-severity-stylefa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle info"
2024-04-21 21:48:09 +00:00
onclick="switchTab('ff95a4f50c49bb9bd9f4fe231e224551','just-severity-stylefa-fw-fas-fa-info-circle')"
2023-06-05 22:32:57 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > < i class = "fa-fw fas fa-info-circle" > < / i > just severity style< / span >
2023-06-05 22:32:57 +00:00
< / button >
< button
2023-09-05 11:10:04 +00:00
data-tab-item="severity-style-and-colorfa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-nav-button tab-panel-style cstyle info" style="--VARIABLE-BOX-color: blue;"
2024-04-21 21:48:09 +00:00
onclick="switchTab('ff95a4f50c49bb9bd9f4fe231e224551','severity-style-and-colorfa-fw-fas-fa-info-circle')"
2023-06-05 22:32:57 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > < i class = "fa-fw fas fa-info-circle" > < / i > severity style an' color< / span >
2023-06-05 22:32:57 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-colored-style"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle blue active">
< div class = "tab-content-text" >
< p > Th' < code > style< / code > parameter be set t' a color style.< / p >
< p > This will set th' background t' a lighter version o' th' chosen style color as configured 'n yer theme variant.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-color"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle filled" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > Only th' < code > color< / code > parameter be set.< / p >
< p > This will set th' background t' a lighter version o' th' chosen CSS color value.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="default-style-and-color"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle default" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > Th' < code > style< / code > parameter affects how th' < code > color< / code > parameter be applied.< / p >
< p > Th' < code > default< / code > style will set th' background t' yer < code > --MAIN-BG-color< / code > as configured fer yer theme variant resembl'n th' default style but wit' different color.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="just-severity-stylefa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle info">
< div class = "tab-content-text" >
< p > Th' < code > style< / code > parameter be set t' a severity style.< / p >
< p > This will set th' background t' a lighter version o' th' chosen style color as configured 'n yer theme variant an' also affects th' chosen ay'con.< / p >
< / div >
< / div >
< div
2023-09-05 11:10:04 +00:00
data-tab-item="severity-style-and-colorfa-fw-fas-fa-info-circle"
2023-06-05 22:32:57 +00:00
class="tab-content tab-panel-style cstyle info" style="--VARIABLE-BOX-color: blue;">
< div class = "tab-content-text" >
< p > Th' < code > style< / code > parameter affects how th' < code > color< / code > parameter be applied.< / p >
< p > This will set th' background t' a lighter version o' th' chosen CSS color value an' also affects th' chosen ay'con.< / p >
< / div >
< / div >
< / div >
< / div >
2023-05-25 10:46:07 +00:00
< footer class = "footline" >
< / footer >
< / article >
< / div >
< / main >
< / div >
2024-04-21 21:48:09 +00:00
< script src = "/hugo-theme-relearn/js/clipboard.min.js?1713736086" defer > < / script >
< script src = "/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713736086" defer > < / script >
< script src = "/hugo-theme-relearn/js/theme.js?1713736086" defer > < / script >
2023-05-25 10:46:07 +00:00
< / body >
< / html >