From c83e13761b4b024a9f10b78fcac933a41b3a6de5 Mon Sep 17 00:00:00 2001 From: Alan Jefferson <47274066+alanjfs@users.noreply.github.com> Date: Thu, 28 Nov 2019 13:14:08 +0000 Subject: [PATCH] Add syntax highlighting --- plot_var_example.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plot_var_example.md b/plot_var_example.md index e08a8e1..f546edb 100644 --- a/plot_var_example.md +++ b/plot_var_example.md @@ -1,7 +1,7 @@ Helper to store values so they can be plotted over time. Usage -``` +```cpp // Call once a frame with current value ImGui::PlotVar("Speed", current_speed); ``` @@ -9,7 +9,7 @@ ImGui::PlotVar("Speed", current_speed); ![capture](https://cloud.githubusercontent.com/assets/8225057/13555359/e73f840c-e3be-11e5-8362-2b390e496513.PNG) .h -``` +```cpp // Plot value over time // Pass FLT_MAX value to draw without adding a new value void PlotVar(const char* label, float value, float scale_min = FLT_MAX, float scale_max = FLT_MAX, size_t buffer_size = 120); @@ -19,7 +19,7 @@ void PlotVarFlushOldEntries(); ``` .cpp -``` +```cpp #include struct PlotVarData {