| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Navigation Home Page
Click here to expand or collapse... Every You, Every Me (Youtube release)
Upcoming BL Series (Start date) Click here to expand or collapse... Top Form (Thu 20 Mar 2025)
Click here to expand or collapse... Art Of Love (OFFLINE)
Beautiful Scars (Episode 4 finale OFFLINE)
Boyband (No International release)
Friend Forever/Our Love Is Sick (OFFLINE)
Great Men Academy (OFFLINE)
Healing Thingyan (OFFLINE)
Hehe & He (Season 3 - on hiatus)
Hook Up (Season 2) (OFFLINE)
If I Love A Boy (OFFLINE)
Indigo (OFFLINE)
Jack And Jill (OFFLINE)
Lakan (OFFLINE)
Make A Wish [Philippines] (OFFLINE)
Make A Wish [Thailand] (No International release)
Missing Piece (OFFLINE)
My Secret Love (OFFLINE)
Quaranthings (OFFLINE)
Roommate (Season 1 OFFLINE)
Sugar Dog Life (No International release)
Truly Very Yours (Season 1) (OFFLINE)
Unguarded (Season 3) (OFFLINE)
Venus In The Sky (Youtube release)
Click here to expand or collapse...Click here to expand or collapse... Destined/Fated (OFFLINE)
Infinity (OFFLINE)
Kiss The Night (OFFLINE)
Overlooked Love (OFFLINE)
The Next Door Crush (OFFLINE)
The Whisperer (EP10 Finale never released)
Unexpected (OFFLINE)
Click here to expand or collapse... = Cambodia = China = Hong Kong = India |
WikiStylesauthors (basic, advanced) WikiStyles allow authors to modify the color and other styling attributes of the contents of a page.
A WikiStyle is written using percent-signs, as in WikiStyle attributesThe style attributes recognized within a WikiStyle specification are:
The attributes in the first two columns correspond to the cascading style sheet (CSS) properties of the same name. The attributes in the last column apply only to specific items:
WikiStyles versus CSS stylesWikiStyles, as written in the wiki page, are not exactly CSS styles or CSS classes. WikiStyles allow authors to use both pre-defined by the administrator CSS classes, and to define new combinations of styles, without any need to edit/update local CSS files on the server. Note that PmWiki allows advanced authors to use of Text color and fontThe most basic use of WikiStyles is to change text attributes such as color, background color, and font.
PmWiki defines several WikiStyles for changing the text color to
For colors other than the predefined colors, use the
To change the background color, use
See WikiStyle Colors for more color help. Text justificationWikiStyles are used to control the text justification
and to create floating text:
ScopeWikiStyles can also specify a scope; with no scope, the style is applied to any text that follows up to the next WikiStyle specification or the end of the paragraph, whichever comes first. The apply= attribute and its shortcuts allow to change the scope as follows:
Thus, Some predefined style shortcuts also make use of apply, thus Example: Apply a style to a paragraph:
Caveat: An applied WikiStyle will only take effect if it's on the line that starts the thing it's supposed to modify. In other words, a WikiStyle in the third markup line of a paragraph can't change the attributes of the paragraph:
If you want to break a list in two, you need to have a line not part of the list between, that is a line that has any content other than space and newlines, otherwise PmWiki considers the vertical space part of the previous list item. You can have an non-breaking space, or the escaped null character:
Larger blocksThe
Note, the HTML "class" and "style" attributes for tables and divisionsWikiStyles are only the commands between Tables, table directives and
Note, the Custom style shortcutsThe
Tip: It's often a good idea to put common style definitions into Group Header pages so that they can be shared among multiple pages in a group. Or, the wiki administrator can predefine styles site-wide as a local customization (see Custom WikiStyles).
Tip: Use custom style definitions to associate meanings with text instead of just colors. For example, if warnings are to be displayed as green text, set %define=warn green% and then use %warn% instead of %green% in the document. Then, if you later decide that warnings should be styled differently, it's much easier to change the (one) definition than many occurrences of %green% in the text.
Tip: Any undefined WikiStyle is automatically treated as a request for a class, thus %pre% is the same as saying %class=pre% .
Predefined style shortcutsPmWiki defines a number of style shortcuts.
Enabling the "Syntax Highlight" code beautifier libraryThis section is about highlighting code in various programming languages using an external library. Instead, or in addition, to enable highlighting of the PmWiki's own markup language syntax in the documentation and/or the edit form, see Since version 2.2.119, PmWiki makes it relatively easy to enable syntax highlighting for preformatted text blocks, wrapped in To enable syntax highlighting, add to $EnableHighlight = 1; $HTMLHeaderFmt['Highlight'] = ' <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/styles/default.min.css" data-theme="light" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/styles/dark.min.css" data-theme="dark" disabled /> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js"></script>'; This loads the Highlight.js library from a global CDN, but you can copy these 3 files to your See also Cookbook:CodeHighlight. Then, in a wiki page, you can use the Either immediately before the code block:
Or in a wrapping division block:
If you have the feature correctly enabled you will see the syntax highlighting of the above code. You may also want to enable a
Enabling StylesStyles not listed above can be enabled by a PmWiki Administrator by modifying the $WikiStyleCSS[] = 'line-height';
Defining scope for other HTML elementsYou can add additional HTML elements to $WikiStyleApply['link'] = 'a';
ExamplesWikiStyle Examples contains a number of examples of ways to use WikiStyles in pages. Known Issues
See Also
This page may have a more recent version on pmwiki.org: PmWiki:WikiStyles, and a talk page: PmWiki:WikiStyles-Talk. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
View
Edit
History
Attach
Print
Page last modified on February 24, 2024, at 01:41 PM |