<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kate &#124; Get an Edge in Editing</title>
	<atom:link href="http://kate-editor.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://kate-editor.org</link>
	<description>The Kate Editor Homepage</description>
	<lastBuildDate>Sat, 12 May 2012 13:39:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>RFC: Exporting JavaScript API</title>
		<link>http://kate-editor.org/2012/05/12/rfc-exporting-javascript-api/</link>
		<comments>http://kate-editor.org/2012/05/12/rfc-exporting-javascript-api/#comments</comments>
		<pubDate>Sat, 12 May 2012 13:36:10 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1787</guid>
		<description><![CDATA[Since quite some time, Kate Part has build-in scripting support through JavaScript. Our plan is to make this API public, so other applications like Kile, Kate App and KDevelop can use it. However, we are currently unsure how to best implement it, so this is a rfc to get feedback. The bindings for a Kate Document [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Since quite some time, Kate Part has <a title="Kate Part JavaScript Support" href="http://docs.kde.org/stable/en/kde-baseapps/kate/advanced-editing-tools-scripting.html" target="_blank">build-in scripting support</a> through JavaScript. Our plan is to make this API public, so other applications like Kile, Kate App and KDevelop can use it. However, we are currently unsure how to best implement it, so this is a rfc to get feedback.</p>
<p>The bindings for a Kate Document are for instance located in part/script/katescriptdocument.h (<a title="KateScriptDocument header file" href="https://projects.kde.org/projects/kde/kde-baseapps/kate/repository/revisions/96db438c4ffe7b4b0c6439013defaf4a20892799/entry/part/script/katescriptdocument.h" target="_blank">header</a>, <a title="KateScriptDocument source file" href="https://projects.kde.org/projects/kde/kde-baseapps/kate/repository/revisions/96db438c4ffe7b4b0c6439013defaf4a20892799/entry/part/script/katescriptdocument.cpp" target="_blank">implementation</a>). As you can see, there are functions like</p>
<pre>Q_INVOKABLE bool insertLine(int line, const QString &amp;s),</pre>
<p>which can be invoked in our scripting by a call of &#8216;document.insertLine(5, &#8220;hello world&#8221;)&#8217;. The API only contains basic functions. But for instance Kile maybe also wants to provide a function called &#8216;document.insertSection()&#8217; or similar LaTeX related functions. The question now is as follows: <strong>How can Kile extend our QObject based prototype with their own QObject based classes?</strong></p>
<p>We do not want to make the class KateScriptDocument public. Instead, we just want to return a QScriptValue containing a QObject based KateScriptDocument. You can think of the problem also as follows:</p>
<pre>// in Kile:
QScriptEngine *engine = ...;
KTextEditor::Document *kteDocument = ...;

QObject* kateScriptDocument = kteDocument-&gt;scriptDocument();
engine-&gt;globalObject().setProperty("document", engine-&gt;newQObject(kateScriptDocument));
// at this point, the JavaScript object 'document' contains all <a title="KateScriptDocument functions" href="https://projects.kde.org/projects/kde/kde-baseapps/kate/repository/revisions/96db438c4ffe7b4b0c6439013defaf4a20892799/entry/part/script/katescriptdocument.h" target="_blank">KateScriptDocument functions</a>

// next, we want to add the Kile related document functions
KileTextDocument* kileDocument = ...;
QObject* kileScriptDocument = kileDocument-&gt;...(); // some function that returns the binginds object

// now: how can we populate the 'document' property with the functions in kileScriptDocument?
engine-&gt;globalObject().setProperty("document", ? );</pre>
<p>If you have any idea or other solutions how to do it right, please let us know!</p>
<div class="shr-publisher-1787"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F05%2F12%2Frfc-exporting-javascript-api%2F' data-shr_title='RFC%3A+Exporting+JavaScript+API'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F05%2F12%2Frfc-exporting-javascript-api%2F' data-shr_title='RFC%3A+Exporting+JavaScript+API'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F05%2F12%2Frfc-exporting-javascript-api%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/05/12/rfc-exporting-javascript-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Crash through D-Bus calls</title>
		<link>http://kate-editor.org/2012/04/06/crash-through-d-bus-calls/</link>
		<comments>http://kate-editor.org/2012/04/06/crash-through-d-bus-calls/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 10:36:51 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1773</guid>
		<description><![CDATA[Years ago, there was a blog on the planet with the title &#8220;How to crash (almost) every Qt/KDE Application and how to fix it&#8220;. In short, if you are showing a dialog, KWin prevents you from closing the application by clicking on the close button in the window decoration. However, through D-Bus, you can still [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Years ago, there was a blog on the planet with the title &#8220;<a title="How to crash (almost) every Qt/KDE Application and how to fix it" href="http://blogs.kde.org/node/3919" target="_blank">How to crash (almost) every Qt/KDE Application and how to fix it</a>&#8220;. In short, if you are showing a dialog, KWin prevents you from closing the application by clicking on the close button in the window decoration. However, through D-Bus, you can still quit the application. A solution was also provided: Use a guarded pointer to create the dialog.While this fixes the issue, it looks like fixing the blame, and not the real issue. Stricktly speaking, even the <a title="Code Examples" href="http://qt-project.org/doc/qt-4.8/QDialog.html#code-examples" target="_blank">Qt documentation</a> would be wrong then.</p>
<p><a title="lxr.kde.org" href="http://lxr.kde.org/ident?i=Accepted" target="_blank">Searching for &#8216;Accepted&#8217; on lxr.kde.org</a> shows lots of dialogs that lead to possible crashes. I wonder whether developers are really aware of this crash? Even if we took care of this issue as proposed, it&#8217;s just a matter of time until dialogs are created the `wrong&#8217; way again (do we have krazy checks for that?). In Kate, no one took care of this situation, meaning that you can indeed crash the application through D-Bus.</p>
<p>Is there a better way to fix this?</p>
<div class="shr-publisher-1773"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F04%2F06%2Fcrash-through-d-bus-calls%2F' data-shr_title='Crash+through+D-Bus+calls'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F04%2F06%2Fcrash-through-d-bus-calls%2F' data-shr_title='Crash+through+D-Bus+calls'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F04%2F06%2Fcrash-through-d-bus-calls%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/04/06/crash-through-d-bus-calls/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>On Removing an Element from a List</title>
		<link>http://kate-editor.org/2012/03/17/on-removing-an-element-from-a-list/</link>
		<comments>http://kate-editor.org/2012/03/17/on-removing-an-element-from-a-list/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 12:10:11 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1747</guid>
		<description><![CDATA[Recently, there was a very good blog about The Importance of Mentoring. It was mentioned that the 3200 slocs of the gsoc projects could be cut down to 500 slocs, doing exactly the same thing. While hunting some crashes in the new code folding code from the last gsoc project, I obviously had a closer [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Recently, there was a very good blog about <a title="The Importance of Mentoring" href="http://blog.martin-graesslin.com/blog/2012/01/the-importance-of-mentoring/" target="_blank">The Importance of Mentoring</a>. It was mentioned that the 3200 slocs of the gsoc projects could be cut down to 500 slocs, doing exactly the same thing.</p>
<p>While hunting some crashes in the new code folding code from the last gsoc project, I obviously had a closer look on how things are implemented. The code folding uses a simple tree structure. Nodes can be added, removed or moved around. So I stumbled over the following code:</p>
<blockquote>
<pre>01 // removes it from children list (QVector)
02 bool SomeClass::removeItem(Item* it)
03 {
04   bool found = false;
05   int i;
06
07   for (i = 0 ; i &lt; children.size(); ++i) {
08     if (children[i] == it) {
09       found = true;
10       break;
11     }
12   }
13
14   if (found) {
15     children.remove(i);
16     return true;
17   }
18
19   return false;
20 }</pre>
</blockquote>
<p>This code appears several times in different locations. It can easily be rewritten as</p>
<blockquote>
<pre>01 // removes it from children list (QVector)
02 bool SomeClass::removeItem(Item* it)
03 {
04   int i = children.indexOf(it);
05   if (i != -1) {
06     children.remove(i);
07   }
08
09   return i != -1;
10 }</pre>
</blockquote>
<p>So without much work, the code is reduced to the half. Diving further into the code, I stumbled over a class KateDocumentPosition. This class is a line/column tuple representing a position in the document. It features operators like &lt;, &gt;, for convenience. Now you may guess it: Kate Part is a <em>text editor</em> using &#8220;document positions&#8221;all over the place, e.g. for the cursor, the text selection, bracket matching, search &amp; replace and what not. In fact, there is no way around using line/column tuples as position markers. Thus, it should not be surprising that we have a public class called <a title="KTextEditor::Cursor" href="http://api.kde.org/4.x-api/kdelibs-apidocs/interfaces/ktexteditor/html/classKTextEditor_1_1Cursor.html" target="_blank">KTextEditor::Cursor</a>, featuring everything what KateDocumentPosition implements (and more). The Cursor class is basically used everywhere, and it works as expected (our unit test rely on it, too). There is no need to duplicate the code. This probably happened because the student was not aware of it.</p>
<p>Martin writes &#8220;<em>Be prepared for the worst</em>&#8220;. Well, true. In this case, the project was successful and the new code folding works better than the old one (after fixing the crashes). Now if you are a gsoc student reading this blog, don&#8217;t feel discouraged. Rather feel encouraged to communicate with the developers <em>a lot</em>, e.g. by discussions on the mailing list <img src='http://kate-editor.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="shr-publisher-1747"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F17%2Fon-removing-an-element-from-a-list%2F' data-shr_title='On+Removing+an+Element+from+a+List'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F17%2Fon-removing-an-element-from-a-list%2F' data-shr_title='On+Removing+an+Element+from+a+List'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F17%2Fon-removing-an-element-from-a-list%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/03/17/on-removing-an-element-from-a-list/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Append Newline at End of File</title>
		<link>http://kate-editor.org/2012/03/12/append-newline-at-end-of-file/</link>
		<comments>http://kate-editor.org/2012/03/12/append-newline-at-end-of-file/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 21:20:58 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Users]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1741</guid>
		<description><![CDATA[In KDE SC 4.9, Kate Part will have an option in the Open/Save config tab called [ ] Append newline at end of file on save By default (and Kate tradition), this option is off. You can also use the document variable (modeline) newline-at-eof [bool], either in the file itself, in a .kateconfig file, or in [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>In KDE SC 4.9, Kate Part will have an option in the Open/Save config tab called</p>
<pre style="padding-left: 30px;">[ ] Append newline at end of file on save</pre>
<p>By default (and Kate tradition), this option is off. You can also use the <a href="http://docs.kde.org/stable/en/kde-baseapps/kate/config-variables.html" target="_blank">document variable (modeline)</a> newline-at-eof [bool], either in the file itself, in a .kateconfig file, or in the &#8220;Modes &amp; Filetypes&#8221; config page. If a newline was added, it is visible only after reloading the document. This finally fixes <a title="Kate Wish #256134" href="https://bugs.kde.org/show_bug.cgi?id=256134" target="_blank">wish #256134</a>.</p>
<div class="shr-publisher-1741"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F12%2Fappend-newline-at-end-of-file%2F' data-shr_title='Append+Newline+at+End+of+File'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F12%2Fappend-newline-at-end-of-file%2F' data-shr_title='Append+Newline+at+End+of+File'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F12%2Fappend-newline-at-end-of-file%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/03/12/append-newline-at-end-of-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Kate Color Schemas</title>
		<link>http://kate-editor.org/2012/03/07/some-kate-color-schemas/</link>
		<comments>http://kate-editor.org/2012/03/07/some-kate-color-schemas/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 21:31:18 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Users]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1728</guid>
		<description><![CDATA[As already mentioned, Kate Part much better chooses colors from the default KDE color palette configured in System Settings in upcoming KDE SC 4.9. As teaser, here are some examples &#8211; hope you like it. Default &#8220;Oxygen&#8221; Color Schema Default &#8220;Obsidian Coast&#8221; Color Schema  Dark &#8220;Vim&#8221; Color Schema Note: The yellow search background comes from [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p><a title="Color Settings" href="http://kate-editor.org/2012/03/01/color-settings/">As already mentioned</a>, Kate Part much better chooses colors from the default KDE color palette configured in System Settings in upcoming KDE SC 4.9. As teaser, here are some examples &#8211; hope you like it.</p>
<p style="text-align: center;"><strong>Default &#8220;Oxygen&#8221; Color Schema</strong><br />
<a href="http://kate-editor.org/wp-content/uploads/2012/03/oxygen.png"><img class="aligncenter size-full wp-image-1729" title="Oxygen Color Schema" src="http://kate-editor.org/wp-content/uploads/2012/03/oxygen.png" alt="" width="739" height="410" /></a></p>
<p style="text-align: center;"><strong>Default &#8220;Obsidian Coast&#8221; Color Schema</strong> <a href="http://kate-editor.org/wp-content/uploads/2012/03/obsidian-coast.png"><img class="aligncenter size-full wp-image-1730" title="Obsidian Coast Color Schema" src="http://kate-editor.org/wp-content/uploads/2012/03/obsidian-coast.png" alt="" width="739" height="410" /></a></p>
<p style="text-align: center;"><strong>Dark &#8220;Vim&#8221; Color Schema</strong><br />
<a href="http://kate-editor.org/wp-content/uploads/2012/03/vim.png"><img class="aligncenter size-full wp-image-1731" title="Vim Color Schema" src="http://kate-editor.org/wp-content/uploads/2012/03/vim.png" alt="" width="739" height="410" /></a></p>
<p style="text-align: left;">Note: The yellow search background comes from the &#8220;Highlight Selection&#8221; plugin, which is still a hard-coded yellow. Kate Part&#8217;s &#8220;Search &amp; Replace&#8221;chooses more fitting highlight colors for matching and replaced text.</p>
<div class="shr-publisher-1728"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F07%2Fsome-kate-color-schemas%2F' data-shr_title='Some+Kate+Color+Schemas'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F07%2Fsome-kate-color-schemas%2F' data-shr_title='Some+Kate+Color+Schemas'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F07%2Fsome-kate-color-schemas%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/03/07/some-kate-color-schemas/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Yet another update for the Colors tab</title>
		<link>http://kate-editor.org/2012/03/01/yet-another-update-for-the-colors-tab/</link>
		<comments>http://kate-editor.org/2012/03/01/yet-another-update-for-the-colors-tab/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 19:07:13 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[Users]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1720</guid>
		<description><![CDATA[Now, the categories in the &#8220;Colors&#8221; tab are painted like in System Settings (top: new, bottom: old): Thanks to Rafael Fernández López for relicensing the code of SystemSettings&#8217; CategoryDrawer under LGPLv{2,3}.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Now, the categories in the &#8220;Colors&#8221; tab are painted like in System Settings (top: new, bottom: old):</p>
<p><a href="http://kate-editor.org/wp-content/uploads/2012/03/color-final.png"><img class="size-full wp-image-1721 aligncenter" title="Final Colors Tab" src="http://kate-editor.org/wp-content/uploads/2012/03/color-final.png" alt="" width="782" height="560" /></a></p>
<p style="text-align: center;"><a href="http://kate-editor.org/wp-content/uploads/2012/03/colors-new.png"><img class="alignnone size-full wp-image-1712" title="New Color Tab" src="http://kate-editor.org/wp-content/uploads/2012/03/colors-new.png" alt="" width="904" height="560" /></a></p>
<p style="text-align: left;">Thanks to Rafael Fernández López for relicensing the code of SystemSettings&#8217; CategoryDrawer under LGPLv{2,3}.</p>
<div class="shr-publisher-1720"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fyet-another-update-for-the-colors-tab%2F' data-shr_title='Yet+another+update+for+the+Colors+tab'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fyet-another-update-for-the-colors-tab%2F' data-shr_title='Yet+another+update+for+the+Colors+tab'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fyet-another-update-for-the-colors-tab%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/03/01/yet-another-update-for-the-colors-tab/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Color Settings</title>
		<link>http://kate-editor.org/2012/03/01/color-settings/</link>
		<comments>http://kate-editor.org/2012/03/01/color-settings/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 10:28:44 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[Users]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1711</guid>
		<description><![CDATA[This week, Kate Part received an update of the &#8220;Colors&#8221; tab in the settings dialog, available in KDE 4.9. The major features include configurable colors: search highlight, replace highlight and modified line colors &#8211; finally possibility to always use colors from the KDE color scheme. the implementation works in a way that at some point, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>This week, Kate Part received an update of the &#8220;Colors&#8221; tab in the settings dialog, available in KDE 4.9. The major features include</p>
<ul>
<li>configurable colors: search highlight, replace highlight and <a title="Kate Modification Markers" href="http://kate-editor.org/2011/09/06/line-modification-system/">modified line colors</a> &#8211; finally <img src='http://kate-editor.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>possibility to always use colors from the KDE color scheme.</li>
<li>the implementation works in a way that at some point, the host application (KDevelop, Kile, &#8230;) can put items into this list.</li>
</ul>
<p>Here are screenshots of the new (top) and the old (bottom) color tab:</p>
<p><a href="http://kate-editor.org/wp-content/uploads/2012/03/colors-new.png"><img class="alignnone size-full wp-image-1712" title="New Color Tab" src="http://kate-editor.org/wp-content/uploads/2012/03/colors-new.png" alt="" width="904" height="560" /></a></p>
<p><a href="http://kate-editor.org/wp-content/uploads/2012/03/colors-old.png"><img class="alignnone size-full wp-image-1713" title="Old Color Tab" src="http://kate-editor.org/wp-content/uploads/2012/03/colors-old.png" alt="" width="904" height="579" /></a></p>
<p>The new implementation uses a QTreeWidget along with a custom delegate to draw the colors button and reset icon. It would be nice to have an appearance of the categories like in systemsettings, or like in dolphin. Dolphin probably uses a KCategorizedView, which in turn uses KCategoryDrawer. KCategoryDrawer could be used, but needs fine tuning in order to make it look nice. Does someone know how systemsettings draws the nice shaded backgrounds of the categories?</p>
<div class="shr-publisher-1711"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fcolor-settings%2F' data-shr_title='Color+Settings'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fcolor-settings%2F' data-shr_title='Color+Settings'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F03%2F01%2Fcolor-settings%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/03/01/color-settings/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Akademy 2012 &#8211;  We are on the way! (soon)</title>
		<link>http://kate-editor.org/2012/02/26/akademy-2012-we-are-on-the-way-soon/</link>
		<comments>http://kate-editor.org/2012/02/26/akademy-2012-we-are-on-the-way-soon/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 16:54:12 +0000</pubDate>
		<dc:creator>Christoph Cullmann</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Users]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1701</guid>
		<description><![CDATA[Perhaps a bit early, but typical german, me and Dominik booked our flights to Tallinn. Lets hope we will have a lot fun there and meet old and new friends See you all, at Tallinn.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Perhaps a bit early, but typical german, me and Dominik booked our flights to Tallinn.</p>
<p>Lets hope we will have a lot fun there and meet old and new friends <img src='http://kate-editor.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>See you all, at Tallinn.</p>
<div class="shr-publisher-1701"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fakademy-2012-we-are-on-the-way-soon%2F' data-shr_title='Akademy+2012+-++We+are+on+the+way%21+%28soon%29'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fakademy-2012-we-are-on-the-way-soon%2F' data-shr_title='Akademy+2012+-++We+are+on+the+way%21+%28soon%29'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fakademy-2012-we-are-on-the-way-soon%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/02/26/akademy-2012-we-are-on-the-way-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Line Modification Indicators</title>
		<link>http://kate-editor.org/2012/02/26/disable-line-modification-indicators/</link>
		<comments>http://kate-editor.org/2012/02/26/disable-line-modification-indicators/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 12:15:17 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[Users]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1697</guid>
		<description><![CDATA[On KDE 4.8.0, there is no way to disable the line modification markers. In KDE &#62;= 4.8.1, you can disable them as follows by first closing Kate and then typing kwriteconfig --file katerc --group "Kate View Defaults" --key "Line Modification" --type bool false To enable it again, close Kate and run kwriteconfig --file katerc --group "Kate [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>On KDE 4.8.0, there is no way to disable the <a title="Line Modification Markers" href="http://kate-editor.org/2011/09/06/line-modification-system/">line modification markers</a>.</p>
<p>In KDE &gt;= 4.8.1, you can disable them as follows by first closing Kate and then typing</p>
<pre>kwriteconfig --file katerc --group "Kate View Defaults" --key "Line Modification" --type bool false</pre>
<p>To enable it again, close Kate and run</p>
<pre>kwriteconfig --file katerc --group "Kate View Defaults" --key "Line Modification" --type bool true</pre>
<p>However, this only affects Kate; not KWrite, Kile, KDevelop or any other application using Kate Part. If you want to disable the markers for KWrite, Kile or KDevelop, use kwriterc, kilerc or kdeveloprc instead of katerc.</p>
<p>In KDE &gt;= 4.9, there is a graphical option in the editor configuration dialog in &#8220;Appearance &gt; Borders &gt; [x] Show line modification markers&#8221;.</p>
<pre></pre>
<div class="shr-publisher-1697"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fdisable-line-modification-indicators%2F' data-shr_title='Disable+Line+Modification+Indicators'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fdisable-line-modification-indicators%2F' data-shr_title='Disable+Line+Modification+Indicators'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F02%2F26%2Fdisable-line-modification-indicators%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/02/26/disable-line-modification-indicators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripting in Kate</title>
		<link>http://kate-editor.org/2012/01/21/scripting-in-kate/</link>
		<comments>http://kate-editor.org/2012/01/21/scripting-in-kate/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 11:13:41 +0000</pubDate>
		<dc:creator>Dominik</dc:creator>
				<category><![CDATA[Developers]]></category>
		<category><![CDATA[Users]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://kate-editor.org/?p=1681</guid>
		<description><![CDATA[Since several releases, Kate Part has scripting support through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions: jump to previous / next paragraph base64 encoding If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Since several releases, <a title="Scripting in Kate" href="http://docs.kde.org/stable/en/kdebase-runtime/kate/advanced-editing-tools-scripting.html" target="_blank">Kate Part has scripting support</a> through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions:</p>
<ul>
<li><a title="Jump to previous / next paragraph" href="http://kucrut.org/move-cursor-to-next-prev-paragraph-in-kate/" target="_blank">jump to previous / next paragraph</a></li>
<li><a title="base 64 encoding" href="http://kde-apps.org/content/show.php/Kate+Base64+support?content=138046" target="_blank">base64 encoding</a></li>
</ul>
<p>If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan to extend this, so applications like Kile or KDevelop can reuse Kate&#8217;s internal code.</p>
<p>On another note, here is <a title="KDE 4.8 release" href="http://cristalinux.blogspot.com/2012/01/kde-48-upcoming-features.html" target="_blank">a nice blog</a> about the upcoming KDE 4.8 release <img src='http://kate-editor.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="shr-publisher-1681"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F01%2F21%2Fscripting-in-kate%2F' data-shr_title='Scripting+in+Kate'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F01%2F21%2Fscripting-in-kate%2F' data-shr_title='Scripting+in+Kate'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkate-editor.org%2F2012%2F01%2F21%2Fscripting-in-kate%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://kate-editor.org/2012/01/21/scripting-in-kate/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

