From e36bac46a0d52c02478db090394f92a3d61bf3e2 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 25 Oct 2015 09:12:31 +0100 Subject: [PATCH] Moved comments to separate attributes instead of using non-standard //-comments. --- src/files.h | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/files.h b/src/files.h index ba80cb1..55dc46c 100644 --- a/src/files.h +++ b/src/files.h @@ -11,26 +11,32 @@ const std::string configjson = " },\n" " \"terminal_history_size\": 1000,\n" " \"gtk_theme\": {\n" -" \"name\": \"Adwaita\", //Use \"\" for default theme, At least these two exist on all systems: Adwaita, Raleigh\n" -" \"variant\": \"\" //Use \"\" for default variant, and \"dark\" for dark theme variant\n" +" \"name_comment\": \"Use \\\"\\\" for default theme, At least these two exist on all systems: Adwaita, Raleigh\",\n" +" \"name\": \"Adwaita\",\n" +" \"variant_comment\": \"Use \\\"\\\" for default variant, and \\\"dark\\\" for dark theme variant\",\n" +" \"variant\": \"\"\n" " },\n" " \"source\": {\n" -" \"style\": \"juci-light\", //Use \"\" for default style, and for instance juci-dark or juci-dark-blue together with dark gtk_theme variant. Styles from normal gtksourceview install: classic, cobalt, kate, oblivion, solarized-dark, solarized-light, tango\n" +" \"style_comment\": \"Use \\\"\\\" for default style, and for instance juci-dark or juci-dark-blue together with dark gtk_theme variant. Styles from normal gtksourceview install: classic, cobalt, kate, oblivion, solarized-dark, solarized-light, tango\",\n" +" \"style\": \"juci-light\",\n" +" \"font_comment\": \"Use \\\"\\\" for default font, and for instance \\\"Monospace 12\\\" to also set size\",\n" #ifdef __APPLE__ -" \"font\": \"Menlo 11\", " +" \"font\": \"Menlo 11\",\n" #else #ifdef _WIN32 -" \"font\": \"Consolas\", " +" \"font\": \"Consolas\",\n" #else -" \"font\": \"Monospace\", " +" \"font\": \"Monospace\",\n" #endif #endif -"//Use \"\" for default font, and for instance \"Monospace 12\" to also set size.\n" " \"show_map\": true,\n" " \"map_font_size\": \"1\",\n" -" \"spellcheck_language\": \"en_US\", //Use \"\" to set language from your locale settings\n" -" \"auto_tab_char_and_size\": true, //Use false to always use default tab char and size\n" -" \"default_tab_char\": \" \", //Use \"\\t\" for regular tab\n" +" \"spellcheck_language_comment\": \"Use \\\"\\\" to set language from your locale settings\",\n" +" \"spellcheck_language\": \"en_US\",\n" +" \"auto_tab_char_and_size_comment\": \"Use false to always use default tab char and size\",\n" +" \"auto_tab_char_and_size\": true,\n" +" \"default_tab_char_comment\": \"Use \\\"\\t\\\" for regular tab\",\n" +" \"default_tab_char\": \" \",\n" " \"default_tab_size\": 2,\n" " \"wrap_lines\": false,\n" " \"highlight_current_line\": true,\n" @@ -49,7 +55,8 @@ const std::string configjson = " \"702\": \"def:statement\",\n" " \"705\": \"def:comment\"\n" " },\n" -" \"clang_format_style\": \"ColumnLimit: 0\" //IndentWidth, AccessModifierOffset and UseTab are set automatically. See http://clang.llvm.org/docs/ClangFormatStyleOptions.html\n" +" \"clang_format_style_comment\": \"IndentWidth, AccessModifierOffset and UseTab are set automatically. See http://clang.llvm.org/docs/ClangFormatStyleOptions.html\",\n" +" \"clang_format_style\": \"ColumnLimit: 0\"\n" " },\n" " \"keybindings\": {\n" " \"new_file\": \"n\",\n"