Editing Kate

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
and setting  
and setting  
Priority 0 for Filetype : Scientific/Matlab and  
Priority 0 for Filetype : Scientific/Matlab and  
Priority 1 for Filetype : Scientific/Octave (the important being that it is higher than the Matlab one)
Priority 1 for Filetype : Scientific/Octave (the important is that it is higher than the Matlab one)


== Comment/uncomment ==
== Comment/uncomment ==
Kate can comment/uncomment several lines of code at the same time. Simply select the lines and press {{Key|Ctr+D}} to comment and {{Key|Shift+Ctr+D}} to uncomment.
Kate can comment/uncomment several lines of code at the same time. Simply select the lines and press {{Key|Ctr+D}} to comment and {{Key|Shift+Ctr+D}} to uncomment.


For the current default (april 2012, octave.xml version 1.01),
For the current (april 2012) default (octave.xml version 1.01),
the added comment start at the beginning of the line.
the added comment start at the beginning of the line.


Line 45: Line 45:


Quit kate, then, as root, {{Codeline|cd /usr/share/kde4/apps/katepart/syntax/ && patch -p7 --backup < /tmp/kate_highlight_octave.xml.patch}}
Quit kate, then, as root, {{Codeline|cd /usr/share/kde4/apps/katepart/syntax/ && patch -p7 --backup < /tmp/kate_highlight_octave.xml.patch}}
== Embedded terminal ==
Integrates a terminal to the editing window.
Settings/Configure kate/Application/Plugins/Terminal tool view
(by the way, you can select also the Find in file tool, quite handy)
Then the terminal can be hidden/shown by clicking on the corresponding button at the bottom of the window.
=== multiple terminals ===
It is possible to switch between several terminals using screen.
Right click on the terminal / configure current profile / Command =>
{{Codeline|/bin/bash -c screen}}
Then create a new session by {{Key|Ctr+a c}} (which means hold {{Key|Ctrl}}, hit {{Key|a}} then {{Key|c}}).
To go to previous session : {{Key|Ctr+a p}}.
To go to next session :  {{Key|Ctr+a n}}.
To go kill current session :  {{Key|Ctr+a k}}.
== set EDITOR to kate ==
On the command line, or in your {{Path|~/.octaverc}}, add the line
{{Codeline|EDITOR("kate %s")}}
then typing in octave {{Codeline|edit myfunc}} will open myfunc.m in the current kate session
[[Category:Editors]]
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)