core & ui_qt: fix CFG view, add support for multiline comment