From 91a7a92b316ec1553122ef8592041304dbf5a03e Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Wed, 20 Apr 2016 11:20:08 +0100 Subject: [PATCH] Added syntax highlighting --- node_graph_example.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_graph_example.md b/node_graph_example.md index 5c61189..95372a9 100644 --- a/node_graph_example.md +++ b/node_graph_example.md @@ -3,7 +3,8 @@ ![Node Graph](https://cloud.githubusercontent.com/assets/8225057/9472357/c0263c04-4b4c-11e5-9fdf-2cd4f33f6582.gif) ### Source -``` + +```cpp // NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h" // Here we only declare simple +/- operators so others don't leak into the demo code. static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x+rhs.x, lhs.y+rhs.y); }