Skip to content
ConsoleMonster

API Reference

Class

Shortcodes

Namespace ConsoleMonster.Glyphs
Assembly ConsoleMonster
Modifiers static

:shortcode: names for emoji (:white_check_mark: is ✅, :warning: is ⚠️, :rocket: is 🚀). Used by markup when Markup.Shortcodes is on and by the emoji presenter; apps add names with Shortcodes.Register. Unknown names stay as written.

Inheritance

  • Object
  • Shortcodes

Methods

public static Void Register(String name, String text) #
Returns: Void

Adds or replaces a shortcode.

Parameters

name System.String requiredposition: 0
The name without colons, for example deploy.
text System.String requiredposition: 1
The text it stands for.
public static String Replace(String text) #
Returns: String

Replaces every known :name: in a text.

Parameters

text System.String requiredposition: 0
The text.

Returns

The text with shortcodes replaced.

public static Boolean TryGet(String name, out String text) #
Returns: Boolean

The text of a shortcode.

Parameters

name System.String requiredposition: 0
The name without colons.
text System.String requiredposition: 1
The text.

Returns

Whether the name is known.