From db6a38dc7403fa63f42799c98b4e3320c9a2de3c Mon Sep 17 00:00:00 2001 From: Arthur Brainville Date: Thu, 4 Apr 2019 11:02:05 +0200 Subject: [PATCH] apply C++ syntax color on all blocks of code --- Tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tips.md b/Tips.md index 952b312..7ec9e6a 100644 --- a/Tips.md +++ b/Tips.md @@ -3,7 +3,7 @@ https://github.com/ocornut/imgui/issues/270 An interesting trick that isn't obvious is that you can use Begin() just to put yourself into the context of that window. So here I want to react to the user inputting an address to scroll to, I use BeginChild() again on the child that I've already drawn so I can use SetScrollFromPosY() on it. -``` +```cpp ImGui::BeginChild("##scrolling", ImVec2(0, -ImGui::GetItemsLineHeightWithSpacing())); // ...(draw main content) ImGui::EndChild();