<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4856&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / syntax highlighting]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4856</link>
		<description><![CDATA[The most recent posts in syntax highlighting.]]></description>
		<lastBuildDate>Sat, 05 Feb 2022 17:22:00 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34429#p34429</link>
			<description><![CDATA[<p>My opinion on Dark mode is that is depends on the purpose of the text. I prefer dark mode for most jobs, but if I&#039;m using office software I need the white background. I feel that the whole purpose of office software is to create documents that look good on paper. So it needs a background the color of paper. Which is white.</p><p>EDIT : Of course syntax highlighting is not used in office apps.&#160; So I guess when it comes to anything with syntax highlighting I prefer dark mode.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Sat, 05 Feb 2022 17:22:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34429#p34429</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34423#p34423</link>
			<description><![CDATA[<p>fsmithred, yes ive downloaded and had a look at those geany themes. I like to use the cobalt color scheme, its old one.</p><p><a href="https://github.com/katsel/geany-colorscheme-cobalt" rel="nofollow">https://github.com/katsel/geany-colorscheme-cobalt</a></p>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Sat, 05 Feb 2022 14:32:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34423#p34423</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34419#p34419</link>
			<description><![CDATA[<p>There are alternate color schemes for geany. Check out the screenshots directory to see examples.<br /><a href="https://github.com/codebrainz/geany-themes" rel="nofollow">https://github.com/codebrainz/geany-themes</a></p><p>I used the default highlighting for geany for years, but it&#039;s become harder to read the orange on white, so I switched to gedit colors, and sometimes I switch to a dark background and use himbere.</p><p><a href="https://github.com/codebrainz/geany-themes/blob/master/screenshots/gedit.png" rel="nofollow">https://github.com/codebrainz/geany-the … /gedit.png</a><br /><a href="https://github.com/codebrainz/geany-themes/blob/master/screenshots/himbeere.png" rel="nofollow">https://github.com/codebrainz/geany-the … mbeere.png</a></p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 05 Feb 2022 13:24:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34419#p34419</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34418#p34418</link>
			<description><![CDATA[<p>Thanks for the input everyone. I like dark modes as its easy on the eyes for me, light colors tend to give me eye strain.</p><p>Thanks for the heads up on the ps1 in loksh head on a stick <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Sat, 05 Feb 2022 12:16:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34418#p34418</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34417#p34417</link>
			<description><![CDATA[<div class="quotebox"><cite>hevidevi wrote:</cite><blockquote><div><p>I was wondering what kinds of syntax highlighting folks here like and use?</p></div></blockquote></div><p>I don&#039;t mind what highlighting to use, as long as there is some one! Currently I use geany and nice editor defaults syntax highlighting configurations. My only concern is using white background, I dislike dark modes. Other than that, I can use any colour scheme.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Sat, 05 Feb 2022 11:05:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34417#p34417</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34405#p34405</link>
			<description><![CDATA[<p>Thanks Ralph, that is a beautiful suggestion, but unfortunately the sway-bar status_command doesn&#039;t know the value of &quot;$COLUMNS&quot; for the bar so that code just results in no space at all between the clock and the battery indicator.</p><p>I&#039;ve settled on</p><div class="codebox"><pre><code>printf &quot;%s%98s%s\n&quot; &quot;$(date +&#039;%H∶%M&#039;)&quot; &quot;$state&quot; &quot;$symbols&quot;</code></pre></div><p>Which does at least look less silly, even if it isn&#039;t.</p><p>And now back to the thread topic...</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Feb 2022 22:49:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34405#p34405</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34403#p34403</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I need spaces to line up the clock exactly on the centreline, tabs don&#039;t quite match.</p></div></blockquote></div><div class="codebox"><pre><code>printf &quot;%$((COLUMNS / 2))s%s%s\n&quot; &quot;$(date +%H%M)&quot; &quot;$state&quot; &quot;$symbols&quot;</code></pre></div><p>Then, for the OP, I think some syntax highlighting is good some really bad; especially when it&#039;s made for dark background where I use light background.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 04 Feb 2022 22:08:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34403#p34403</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34402#p34402</link>
			<description><![CDATA[<div class="quotebox"><cite>JWM-Kit wrote:</cite><blockquote><div><p>Might I suggest using printf</p></div></blockquote></div><p>Thanks for the suggestion. I need spaces to line up the clock exactly on the centreline, tabs don&#039;t quite match. But I suppose it would be slightly cleaner to use mostly tabs with a few spaces:</p><div class="codebox"><pre><code>printf &quot;$(date +&#039;%H∶%M&#039;)\t\t\t\t\t\t\t\t\t\t\t\t       %s%s\n&quot; &quot;$state&quot; &quot;$symbols&quot;</code></pre></div><p>Thanks again and apologies to the OP for the diversion.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Feb 2022 21:53:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34402#p34402</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34401#p34401</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>...EDIT: yes, I am using whitespace to centre the clock; I don&#039;t know how to use JSON...</p></div></blockquote></div><p>Nothing wrong with that.&#160; if it works.&#160; Why make the code more complicated than it needs to be.&#160; Might I suggest using printf instead of echo which supports using \t for tab and \n for new line.&#160; Example.</p><div class="codebox"><pre><code>printf &quot;$(date +&#039;%H:%M&#039;)\t\t\t\t$state$symbols\n&quot;</code></pre></div><p>Syntax highlighting is a blessing.&#160; It helps identify content between quotes, brackets,etc and easily find unclosed brackets, quotes.&#160; It can helps identify which code belongs to a certain code block (like a function or class). The advantage go on it. My job would b e so much more difficult without it.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Fri, 04 Feb 2022 21:42:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34401#p34401</guid>
		</item>
		<item>
			<title><![CDATA[Re: syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34382#p34382</link>
			<description><![CDATA[<p>I&#039;m a complete tart so I can&#039;t live without syntax highlighting. I find it useful for shell scripts because it indicates when I mess up the syntax, which happens often.</p><p>I use the default vim highlighting, here&#039;s an example featuring my lame status &quot;script&quot; for sway:</p><p><a href="https://i.postimg.cc/2CnFbB8c/20220204-18h05m44s-grim.png" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/ZW2RdTV5/20220204-18h05m44s-grim.png" alt="20220204-18h05m44s-grim.png" /></span></a></p><p>EDIT: yes, I am using whitespace to centre the clock; I don&#039;t know how to use JSON...</p><p>EDIT2: btw did you know OpenBSD&#039;s ksh can use GNU-style PS1 backslash-escaped special characters?</p><div class="codebox"><pre><code>PS1=&#039;\e[36m\w \e[32m&gt;\e[0m &#039;</code></pre></div><p>^ That replicates your PS1 without having to run <span class="bbc">pwd</span> &amp; <span class="bbc">sed</span> every time you press &lt;return&gt;.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Feb 2022 18:07:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34382#p34382</guid>
		</item>
		<item>
			<title><![CDATA[syntax highlighting]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34371#p34371</link>
			<description><![CDATA[<p>I was wondering what kinds of syntax highlighting folks here like and use? </p><p>Ive recently read about only having comments highlighted in a program file , config, script etc and have given it a try in geany and it sort of makes sense that to understand the code, comments are better off highlighted than the actual code itself. So for example, a bashrc, config, C&#160; file will only have the comments in blue and the rest of the input witll be white, so lets say black background, blue syntax foreground and white code foreground for example, only 3 colors used in that order.</p><p>thoughts??</p><p>example:</p><p><a href="https://postimg.cc/gnX4x0SY" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/KvQWsktg/2022-02-04-222724-1366x768-scrot.png" alt="2022-02-04-222724-1366x768-scrot.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Fri, 04 Feb 2022 12:22:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34371#p34371</guid>
		</item>
	</channel>
</rss>
