diff --git a/Documentation.md b/Documentation.md index 38f1baf..91a6cac 100644 --- a/Documentation.md +++ b/Documentation.md @@ -178,7 +178,7 @@ If the layout is `'dynamic'`, the row height and columns must be specified. If ` If the layout is `'static'`, there must either be `item_width` and `cols` parameters describing the number of fixed-width columns to divide the row into, or there must be a `sizes` table, which is an array of fixed widths for the columns. Examples: -``` +```lua -- Create a row which is 30 pixels high and is divided into 3 equally sized columns. nk.layout_row('dynamic', 30, 3) @@ -541,7 +541,7 @@ Reset color styles to their default values. Load a color table for quick color styling. Below is the default color table. Custom color tables must provide all of the same fields. -``` +```lua local color_table = { ['text'] = '#afafaf', ['window'] = '#2d2d2d', @@ -587,7 +587,7 @@ See [LÖVE Font](https://love2d.org/wiki/Font). Push any number of [style items](#style-items) onto the style stack. Example (see [skin.lua](https://github.com/keharriso/love-nuklear/blob/master/example/skin.lua)): -``` +```lua nk.style_push { ['text'] = { ['color'] = '#000000' @@ -608,7 +608,7 @@ nk.style_push { Pop the most recently pushed style. ### Style Items -``` +```lua local style = { ['font'] = Font, ['text'] = {