<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/universalindent/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/universalindent/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 02 Jan 2025 16:39:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/universalindent/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Does UniversalIndentGUI read uncrustify config files?</title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/f804df4acb/?limit=25#1429</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I'm trying to configure Uncrustify-0.80.1_f for use with an embedded coding standard based on BARR-C:2018.  I've downloaded and am using UniversalIndentGUI Version 1.2.0 rev.1070 to explore the config settings.  I have managed to load a reference code file that doesn't quite convert correctly with Uncrustify, and I've managed to check the behaviour of a few config settings by using the click boxes on the left of the screen.&lt;/p&gt;
&lt;p&gt;To check my own config file, I used the menu option Indenter -&amp;gt; Load Indenter Config File and pointed that to my .cfg file.  But the settings don't then match what I've changed manually in the .cfg file.&lt;/p&gt;
&lt;p&gt;What am I doing wrong?  It seems to be a straightforward process but just doesn't work.  The latest version of the GUI seems to be 12 years old, is it just not compatible with Uncrustify any more?  Am I missing something (very likely), or does this software not work (seems to be unlikely)?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Beard</dc:creator><pubDate>Thu, 02 Jan 2025 16:39:08 -0000</pubDate><guid>https://sourceforge.net0a6c327ffc39752a164fc8535e2bb4267d95c2fb</guid></item><item><title>Can this identer align vertically  parenthesis </title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/4a50740c88/?limit=25#a97a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi PYC,&lt;/p&gt;
&lt;p&gt;Time being UniversalIndentGUI is unmaintained since a couple of years. I just don't have time for it anymore.&lt;/p&gt;
&lt;p&gt;But regarding the formatting style that you'd like to have, that should be doable. UniversalIndentGUI itself does not perform the formatting directly. Instead it utilizes a couple of different source code formatting tools, like e.g. uncrustify or astyle. For different programming languages, different formatters exist, so you'd need to check whether your language is among them and then play around with the different formatting options.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br/&gt;
   Thomas&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Schweitzer</dc:creator><pubDate>Mon, 09 Jan 2023 08:34:19 -0000</pubDate><guid>https://sourceforge.net8dc5dc04e39a7136e0d2d747f428c6d21c69b2e2</guid></item><item><title>Can this identer align vertically  parenthesis </title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/4a50740c88/?limit=25#a147</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;br/&gt;
I have a basic question before to download and use this application.&lt;/p&gt;
&lt;p&gt;Ok .. I'm a old fashion IT guy (30 years of IT) and .... I DO NOT LIKE AT ALL in code this style or opening and closing parenthesis which are not vertically aligned ...&lt;br/&gt;
this style of openign parenthesis which is written at the end of the if line just because in the stoneage of IT we were in teh need to gain some lines on printer is make the code display poor &lt;br/&gt;
if (.............) {&lt;br/&gt;
      do this &lt;br/&gt;
      do that&lt;br/&gt;
}&lt;br/&gt;
I rather prefer to use more vertical space, have the opening and closing parameter jsut aligned vertically at teh same column than the if ... and then all what is inside indented by one TAB&lt;br/&gt;
if (.............) &lt;br/&gt;
{&lt;br/&gt;
      do this &lt;br/&gt;
      do that&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;here I put just an example with a if ... but it is the same for a function, a switch or anything which means what is below is in fact "inside"&lt;/p&gt;
&lt;p&gt;So is your program able to do this ? &lt;/p&gt;
&lt;p&gt;Cordialement&lt;/p&gt;
&lt;p&gt;PYC&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Schweitzer</dc:creator><pubDate>Sun, 08 Jan 2023 08:23:22 -0000</pubDate><guid>https://sourceforge.net8993b2210837d2e5e1ecc628dbddd115e964a754</guid></item><item><title>Incorrect CSS formatting</title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/313670e649/?limit=25#ab1e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Using the plugin in Notepad++ , this code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="na"&gt;.hr0&lt;/span&gt; &lt;span class="err"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border:&lt;/span&gt;    &lt;span class="err"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height:&lt;/span&gt;    &lt;span class="err"&gt;1&lt;/span&gt;&lt;span class="nf"&gt;px&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
    &lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="no"&gt;webkit-linear-gradient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#f0f0f0, #8c8b8b, #f0f0f0);&lt;/span&gt;
    &lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="no"&gt;moz-linear-gradient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#f0f0f0, #8c8b8b, #f0f0f0);&lt;/span&gt;
    &lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="no"&gt;ms-linear-gradient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#f0f0f0, #8c8b8b, #f0f0f0);&lt;/span&gt;
    &lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="no"&gt;o-linear-gradient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;left&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#f0f0f0, #8c8b8b, #f0f0f0);&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Turns into this, after apply the formatter:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="na"&gt;.hr0&lt;/span&gt; &lt;span class="err"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;border:&lt;/span&gt;&lt;span class="err"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;height:&lt;/span&gt;&lt;span class="err"&gt;1&lt;/span&gt;&lt;span class="nf"&gt;px&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;background-image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c"&gt;;&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And, moreover, if the last bracket is, missed, the formatter deletes the entire selector.&lt;br/&gt;
This makes it unusable. I'm doing something wrong?&lt;br/&gt;
Regards.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oxk4r</dc:creator><pubDate>Wed, 09 Jan 2019 08:55:59 -0000</pubDate><guid>https://sourceforge.net124e10f5854750a8051de9a517e72131748f10e4</guid></item><item><title>need advice on how to use uigui and uncrustify</title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/e9317019/?limit=25#ad0f</link><description>&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Schweitzer</dc:creator><pubDate>Sat, 24 Feb 2018 04:07:42 -0000</pubDate><guid>https://sourceforge.net4d00ac175a1f4420b0cda6980f2f6fe195b79f62</guid></item><item><title>need advice on how to use uigui and uncrustify</title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/e9317019/?limit=25#b6c6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm running Ubuntu 14 with uncrustirfy 059 and uigui rev 1.2.0 1070 both from the Ubuntu repos. I'm an original K&amp;amp;R C guy. In fact I had a beer with Dennis Ritchie at a Unix Wizzards party in Calif in the mid 80s.&lt;/p&gt;
&lt;p&gt;I have 3 areas of questions on how to use these together.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Where is the uigui .ini to be found? Are there multiple locations in which the .ini can be found and if so what is the discovery order? Does it read just one or does it read all in some order?&lt;/li&gt;
&lt;li&gt;Other than manually editing (some) .ini how does one use the uigui itself to change the settings and save the .ini in a desired location?&lt;/li&gt;
&lt;li&gt;Given that I want to use uncrustify, I'm not clear on how to create a starting point using uigui. I desire to begin with the classic K&amp;amp;R C style settings. Then I want to slightly tweak this and then save that to be used all the time. How do I do these initial steps?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;thanks for the advice.&lt;br/&gt;
rich, oldunixguy&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rich Painter</dc:creator><pubDate>Thu, 28 Dec 2017 02:56:03 -0000</pubDate><guid>https://sourceforge.netab2f926124659c4758118a84b71ebeea1eb6dae0</guid></item><item><title>changing color of GUI from bright to 'night' ?  How to?</title><link>https://sourceforge.net/p/universalindent/discussion/general/thread/f94b02a7/?limit=50#362e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is it configurable somewhere (or can it be made so) as to (mainly) how to set the background from a bright-white to black?  Using "pastel code-hilighting" on top of bright-white is less than ideal for contrast (looking at some of the colors I see an over 70% brightness value, where the recommended value for reading is 46% (http://uxmovement.com/content/why-your-gray-text-should-never-exceed-46-brightness/, &lt;a href="https://www.w3.org/TR/WCAG/#visual-audio-contrast" rel="nofollow"&gt;https://www.w3.org/TR/WCAG/#visual-audio-contrast&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Astara</dc:creator><pubDate>Sun, 11 Jun 2017 21:38:27 -0000</pubDate><guid>https://sourceforge.net622e1f7ed9ce9539202cd6dc2bf71516dc2147f4</guid></item><item><title>Web links and wazzup?  </title><link>https://sourceforge.net/p/universalindent/discussion/571438/thread/b3369811/?limit=50#730b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Why does "universalindentgui" (at SF.net) try to take you to a sf site under ".io" (which gives a 404 error), but "universalindent.sourceforget.net" works &amp;amp; gives the 'gui' website?&lt;/p&gt;
&lt;p&gt;Also, tried to report incident (this one being one), from the sf.net site, and that also tried to go to the .io site -- and also 404'd.  Seems like the links are "way" messed up... :-)...?  but these weren't my original question/incident.  Will post that separatingly (really more of an enhancement, but maybe it's already implemented).. so to that...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Astara</dc:creator><pubDate>Sun, 11 Jun 2017 20:46:37 -0000</pubDate><guid>https://sourceforge.nete42aa7e2c3c367ffc7dcac825377f053dc6f53f9</guid></item><item><title>Had to patch UniversalIndentGUI source on Fedora 25 to get it to compile</title><link>https://sourceforge.net/p/universalindent/discussion/general/thread/e8f4ffa6/?limit=25#7d46</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I had to patch two files in the UniversalIndentGUI.xcodeproj directory to get the project to compile.  Once I did that, it built without issue.  The two files were qt_preprocess.mak and qt_makeqmake.mak.  I think it is because there are now also corresponding qt5 files, and so the scripts need to use the qt4 qualifier.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;cat qt_preprocess.mak.patch

--- UniversalIndentGUI.xcodeproj/qt_preprocess.mak      2017-06-02 09:33:59.349826697 -0700
+++ UniversalIndentGUI.xcodeproj/qt_preprocess.mak      2017-06-02 09:32:44.678173668 -0700
@@ -4,18 +4,18 @@
 &lt;span class="c"&gt;# Project:  UniversalIndentGUI.pro&lt;/span&gt;
 &lt;span class="c"&gt;# Template: app&lt;/span&gt;
 &lt;span class="c"&gt;# Command: /opt/local/bin/qmake -spec /opt/local/share/qt4/mkspecs/macx-xcode -o UniversalIndentGUI.xcodeproj/project.pbxproj UniversalIndentGUI.pro&lt;/span&gt;
 &lt;span class="c"&gt;#############################################################################&lt;/span&gt;

-MOC       &lt;span class="o"&gt;=&lt;/span&gt; /opt/local/share/moc
-UIC       &lt;span class="o"&gt;=&lt;/span&gt; /opt/local/share/uic
+MOC       &lt;span class="o"&gt;=&lt;/span&gt; moc-qt4
+UIC       &lt;span class="o"&gt;=&lt;/span&gt; uic-qt4
 &lt;span class="nv"&gt;LEX&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; flex
 &lt;span class="nv"&gt;LEXFLAGS&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; 
 &lt;span class="nv"&gt;YACC&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; yacc
 &lt;span class="nv"&gt;YACCFLAGS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; -d
 &lt;span class="nv"&gt;DEFINES&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-INCPATH       &lt;span class="o"&gt;=&lt;/span&gt; -I/opt/local/share/qt4/mkspecs/macx-xcode -I. -Irelease/moc -Isrc -I/opt/local/include/QtScript -I/opt/local/include/QtGui -I/opt/local/include/QtNetwork -I/opt/local/include/QtCore -I/opt/local/include -Irelease/uic -I/usr/local/include -I/System/Library/Frameworks/CarbonCore.framework/Headers
+INCPATH       &lt;span class="o"&gt;=&lt;/span&gt; -I/usr/lib64/qt4/mkspecs/macx-xcode -I. -Irelease/moc -Isrc -I/usr/include/QtScript -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtCore -I/usr/include -Irelease/uic -I/usr/local/include -I/System/Library/Frameworks/CarbonCore.framework/Headers
 &lt;span class="nv"&gt;DEL_FILE&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; rm -f
 &lt;span class="nv"&gt;MOVE&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; mv -f

 &lt;span class="nv"&gt;IMAGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 
 &lt;span class="nv"&gt;PARSERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;

 &lt;span class="nv"&gt;$ &lt;/span&gt;cat qt_makeqmake.mak.patch
--- UniversalIndentGUI.xcodeproj/qt_makeqmake.mak       2012-01-01 09:51:34.000000000 -0700
+++ UniversalIndentGUI.xcodeproj/qt_makeqmake.mak       2017-06-02 08:36:03.893421785 -0700
@@ -4,11 +4,11 @@
 &lt;span class="c"&gt;# Project:  UniversalIndentGUI.pro&lt;/span&gt;
 &lt;span class="c"&gt;# Template: app&lt;/span&gt;
 &lt;span class="c"&gt;# Command: /opt/local/bin/qmake -spec /opt/local/share/qt4/mkspecs/macx-xcode -o UniversalIndentGUI.xcodeproj/project.pbxproj UniversalIndentGUI.pro&lt;/span&gt;
 &lt;span class="c"&gt;#############################################################################&lt;/span&gt;

-QMAKE    &lt;span class="o"&gt;=&lt;/span&gt; /opt/local/bin/qmake
+QMAKE    &lt;span class="o"&gt;=&lt;/span&gt; /usr/bin/qmake-qt4
 UniversalIndentGUI.xcodeproj/project.pbxproj: UniversalIndentGUI.pro  /opt/local/share/qt4/mkspecs/macx-xcode/qmake.conf /opt/local/share/qt4/mkspecs/common/unix.conf &lt;span class="se"&gt;\&lt;/span&gt;
                /opt/local/share/qt4/mkspecs/common/mac.conf &lt;span class="se"&gt;\&lt;/span&gt;
                /opt/local/share/qt4/mkspecs/common/mac-g++.conf &lt;span class="se"&gt;\&lt;/span&gt;
                /opt/local/share/qt4/mkspecs/qconfig.pri &lt;span class="se"&gt;\&lt;/span&gt;
                /opt/local/share/qt4/mkspecs/modules/qt_webkit_version.pri &lt;span class="se"&gt;\&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I then ran qmake-qt4, and when that completed, make, and universalindentgui was in the release directory.  When I run it, it runs nicely from there, but I can't seem to load any indent config files.  I tried the uncrustify command from the help solution, uncrustify -c &lt;span&gt;[config-file-name]&lt;/span&gt; --universalindentgui &amp;gt; uigui-uncrustify-config, but no dice.  The file locator doesn't even show the file.  And it also doesn't show hidden files, so I can't select them for other indenters either.  There must be something I'm not doing properly.&lt;/p&gt;
&lt;p&gt;At one point I saw a complaint that there were no indent files in /usr/share/universalindentgui, but the doc says it should run just fine from the build directory.&lt;/p&gt;
&lt;p&gt;Maybe you'll have better luck.  :-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">stan</dc:creator><pubDate>Fri, 02 Jun 2017 17:07:35 -0000</pubDate><guid>https://sourceforge.netb532239039c690416a26c443fde7db32f549bc04</guid></item><item><title>Wrong limit of "79" to "astyl" "max-statement-indent"</title><link>https://sourceforge.net/p/universalindent/discussion/general/thread/bcb8c07d/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've found that the limit of  79 for the "max-statement-indent" astyl parameter is wrong.  The real limit is 120.&lt;/p&gt;
&lt;p&gt;Please see &lt;a href="https://sourceforge.net/p/astyle/bugs/408/"&gt;https://sourceforge.net/p/astyle/bugs/408/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Eric&lt;br/&gt;
ps: I can't create a ticket.  normal?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Chamberland</dc:creator><pubDate>Fri, 30 Sep 2016 13:35:18 -0000</pubDate><guid>https://sourceforge.net842d70dd654e1b853ed592db3f1829a5b30b594c</guid></item></channel></rss>