API Reference
Class
Shortcodes
: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:
VoidAdds or replaces a shortcode.
Parameters
- name System.String
- The name without colons, for example deploy.
- text System.String
- The text it stands for.
public static String Replace(String text) #Returns:
StringReplaces every known :name: in a text.
Parameters
- text System.String
- The text.
Returns
The text with shortcodes replaced.
public static Boolean TryGet(String name, out String text) #Returns:
BooleanThe text of a shortcode.
Parameters
- name System.String
- The name without colons.
- text System.String
- The text.
Returns
Whether the name is known.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?