Kate editor on windows

Build It

Right now, Kate’s source code is located on the invent.kde.org GitLab instance. This tutorial explains how to build Kate without touching your global installation.

All stuff will happen inside an extra development directory. This avoids the need for administrator rights and allows always to fallback to use the global installed Kate if the currently build version is broken.

As this tutorial will introduce a setup that allows to develop other parts of the KDE software stack, too, we will talk in the following about setting up a KDE development environment. Required KDE Frameworks will be compiled in addition to the Kate application parts. This eases contributions to all levels of the KDE software stack.

Choose your Kate & KDE development directory

Choose yourself some path where all Kate & KDE development things should end up. Beside user local configuration files, nothing outside of this directory will be polluted. You can re-use this for development on any part of the KDE software stack.

For the remaining parts of this description we use

Feel free to customize this.

Install kdesrc-build

Installing is more or less just cloning the current version

For later ease of use, best symlink the kdesrc-build script to some folder inside your path, e.g. if you have some user local bin:

Configuring kdesrc-build

kdesrc-build has some setup pass that can configure stuff for you, see this introduction.

Here we just show a .kdesrc-buildrc that is good enough for Kate development needs.

You can just copy and paste the below variant into your home directory as .kdesrc-buildrc and adapt the paths to your needs. If you stick with the

/projects/kde path we did choose above, this should be usable 1:1.

The important lines to have a good experience developing Kate (or other KDE stuff) with Kate are described below in detail.

Create .kateproject files

This ensures you get not only Ninja build files (nifty as this will e.g. automatically use multiple cores for compiles) but in addition .kateproject files inside the build directories for later use, too. With this files, the project plugin of Kate will know what to do, e.g. where the source directory for the compile is and which build commands it should use for the build plugin.

Ensure LSP integration works

This ensures CMake will generate the compile_commands.json files that are required for clangd based LSP integration. Beside just generating them inside the build directory the linking option will symlink them back to your source directories. This allows zero-configuration usage of the LSP plugin inside Kate (and other editors).

Читайте также:  Мониторинг оперативной памяти linux

Install needed dependencies (optional)

kdesrc-build provides some initial setup mode to install the needed packages for several common distributions to start developing. This is helpful if you are not sure if all needed development packages are installed on your system and you don’t want to take care of this yourself manually. As this will try to install packages for your distribution, this step will require administrator rights for the package installation. To do that, just trigger:

We already created a .kdesrc-buildrc, that will be left untouched. For the further usage you don’t need to modify your shell settings either.

Build Kate & dependencies

To trigger a compile of Kate and all needed KDE dependencies now just type:

For me, this did now compile 76 modules 😉 That takes a few minutes on a recent machine. Time to grab some coffee or think about what you actually want to implement.

If you only want to build Kate without the dependencies because you are sure you have recent enough stuff on your system, you can try:

But given that on modern machines, the compile times are low, it is more convenient to just build all stuff, that ensures you have e.g. the latest and best KSyntaxHighlighting and KTextEditor frameworks around, too!

Given this setup, you are free to build all KDE software parts with a simple:

Keep in mind: that will take some time (and disk space).

How to use the build stuff?

To launch you local Kate version, you need to setup the environment first properly to ensure the right plugins and stuff is loaded. Fortunately this is very simple:

A nifty way to wrap this is to e.g. create yourself a small wrapper script to start your master branch version of Kate inside your local bin directory:

Keep your stuff up-to-date

To keep your local version up-to-date, you can just use the above commands again. They will take care of pulling new changes from the KDE repositories and building/installing them into your local prefix.

Develop!

Now, the remaining question is: How to develop best?

Naturally, if you want to hack on Kate, it might make sense to use Kate for that.

Given the above preparations, that is easy to do, just start your new master version of Kate and pass it the build directory:

Alternatively, you can navigate there in your terminal and startup Kate from there, it will auto-open it:

To have the best experience with this, ensure you have at least project & LSP plugin enabled. If you like to have some GUI build integration, activate the build plugin, too.

You will end up with a new Kate windows like shown below.

In the lower “Current Project” tool view you have per default two terminals. The first terminal is inside your build directory, here you can e.g. run your ninja and ninja install commands and such. The second terminal is inside your source directory, perfect for e.g. git command line calls.

Given the above setup, the LSP plugin (if you have clangd installed) should work out of the box.

Other nifty stuff like project wide quick open, search & replace and correct build targets should be setup, too.

Contribute back!

Feel free to create a merge request at invent.kde.org. For more information see Join Us.

Читайте также:  Eclipse для linux mint

Get Support?

If you have questions you can ask them on our mailing list kwrite-devel@kde.org and/or join #kate on irc.kde.org.

For more information see Get Help.

Building Kate from Sources on Windows

To build the KF5 based Kate/KWrite you can follow the guide on KDE on Windows.

Building Kate from Sources on macOS

To build the KF5 based Kate/KWrite you can follow the guide on KDE on macOS.

Visit the KDE MetaStore

Show your love for KDE! Purchase books, mugs, apparel, and more to support KDE.

Kate 16.04 on Windows (64bit)

Friday, 29 April 2016 | Dominik Haumann

NOTE: Please refer to Get It for up-to-date Windows versions

It seems the Kate Alpha Release in January was well received by some users. So we are happy to announce that we are releasing an updated Windows installer for Kate (64bit) today. Essentially, this is the same version that is shipped with the KDE Applications 16.04 release under Linux.

  • Kate-setup-16.04.1-64bit.exe (64bit) installer, compiled on Windows 10
  • If you have git in your PATH, then the Kate Projects plugin will work as expected.
  • As mentioned in the previous post, you may want to also install D-Bus for Windows, so that all documents opened use the same Kate instance.
  • You can compile Kate yourself with Visual Studio 2015 community edition by following the steps in kate-windows.git. For me, a few tweaks were necessary, though: If some modules do not compile, just run the cmake build command again (and again). The “NMake Makefiles JOM” do not work for me, I had to use “Visual Studio 14 2015 Win64” generator. You can start the Visual Studio with `devenv KateOnWindows.sln`. If you have further questions, please contact us on the mailing list.

Screenshot of running Kate under Windows 10:

If you want to contribute or have questions, please contact the Kate developers on kwrite-devel@kde.org (subscribe). Also, you can sometimes reach us via IRC on irc.freenode.net in the channel #kate.

Kate on Windows

Thursday, 28 January 2016 | Kåre Särs

NOTE: Please refer to Get It for up-to-date Windows versions

It took some time but here is now an installer for Kate on Windows.

First the proof 🙂

[][2] The installer [][3] An example of what it can look like

There are still some things that needs fixing. The current installer is built from git master and not from released packages so the translation stuff hat you usually get with the release packages are missing. So only partially translated. Another feature that I’m still missing is the spell-check. I need to still add a/hspell and language dictionaries to get that to work.

But for now you can try it out here: http://download.kde.org/unstable/kate/ (updated link)

And if you are eager to help here is my scratch repo for the build recipes:
git://anongit.kde.org/scratch/sars/kate-windows.git

And if you happen to want to have only one kate window for all the documents that you open, you might want to install DBus. This is the installer that I have tested with:
https://dbus-windows-installer.googlecode.com/files/DBus-Windows-Installer-1.4.1-2.exe
Happy Hacking!

Note: This would not have been possible without the big effort that the KDE on Windows people have made to get stuff to compile on Windows and keeping sure that it continues to compile. Thank you!

Читайте также:  Ubuntu подключить windows ресурс

Kate editor on windows

Kate — редактор для работы с текстовыми документами, который также можно использовать для работы с кодом.

По умолчанию этот текстовый редактор входит в состав среды KDE операционной системы Linux. Kate также доступен для ОС Windows. Редактор обладает множеством функций, его можно использовать и в качестве «блокнота», и в виде программы для работы с языками программирования, HTML, CSS и т.п. Программа поддерживает подсветку синтаксиса и проверку правописания для многих языков. Также в Kate реализована функция подсветки скобок, она работает со всеми распространенными кодировками.

Как и все современные редакторы, этот поддерживает работу с вкладками, что позволяет работать одновременно с несколькими документами. Также главное окно можно разделять на две части как по вертикали, так и по горизонтали. В программу интегрирована командная строка. Есть удобная система закладок для быстрого доступа к файлам.

К другим достоинствам софта следует отнести перенос строк, поддержку скриптов JS, удобный поиск по одному документу или по всем открытым, функцию автоматического дополнения для исходных кодов, поддержку сеансов. Редактор выделяется на фоне конкурентов бесконечными «отменить» и «повторить», настраиваемой функцией автосохранения и возможностью создавать резервные копии. Расширить функционал можно с помощью сторонних плагинов.

Преимущества и недостатки

  • Подсветка синтаксиса и проверка правописания
  • Предварительный просмотр при печати
  • Удобная система закладок
  • Поддержка полноэкранного режима
  • Настраиваемые горячи клавиши
  • Потребляет много оперативной памяти
  • Неудобна для новичков

Функции и особенности

Скриншоты

Скриншоты интерфейса и рабочих окон Kate.

Как пользоваться

Видео инструкция по использованию и настройке Kate.

Скачать бесплатно

Скачайте последнюю версию Kate (20.12.0) по прямой ссылке с нашего сайта. Программа совместима с операционными системами Windows 10, 8, 7 разрядностью 32/64-bit. Данный программный продукт распространяется бесплатно, а его интерфейс доступен на английском языке. Также вы можете скачать программу по ссылке с официального сайта.

  • 20.12.0
  • 56.0 Мб
  • 74

Безопасная загрузка файла с нашего сервера!

Отзывы

Отзывов о Kate пока нет. Добавите первый?

Kate editor on windows

Kate (KDE Advanced Text Editor) – свободный текстовый редактор, входящий в состав среды рабочего стола KDE. Распространяется согласно лицензии GNU General Public License. Поддерживает работу в Microsoft Windows, Mac OS X и Linux.

Kate является частью пакета kdebase начиная с версии KDE Software Compilation 2.2 (15 августа 2002). Благодаря технологии KParts, Kate можно встраивать в любое другое приложение KDE Software Compilation в качестве компонента редактирования. В частности, Kate встроен в интегрированную среду разработки KDevelop и среду веб-разработки Quanta Plus.

Возможности Kate

  • Разделение окна на части (горизонтальное и вертикальное);
  • Интерфейс для нескольких документов;
  • Плагины: терминал, SQL, сборка проектов, GDB, замена в файлах и др.;
  • Поддержка сеансов (включающих список открытых файлов);
  • Поддержка множества кодировок, в т. ч. Unicode;
  • Поддержка различных переводов строк (Microsoft Windows, UNIX, Mac OS), включая автоопределение;
  • Сетевая прозрачность (открытие и сохранение сетевых файлов);
  • Расширяемость с помощью скриптов.
  • Система закладок (и breakpoints);
  • Индикация изменяемой строки;
  • Номера строк.
  • Подсветка синтаксиса для более 180 типов файлов и сворачивание блоков кода. Может быть расширено с помощью файлов XML;
  • Подсветка соответствия скобок;
  • Умная проверка орфографии “на лету”;
  • Подсветка выделяемых слов.
  • Авто-идентация, настраиваемая с помощью скриптов
  • «Умная» обработка комментариев;
  • Автодополнение, включая аргументы;
  • Режим «Vi Input Mode», эмулирующий текстовый редактор Vim.
  • Последовательный поиск;
  • Многострочный поиск и замена, также для нескольких открытых файлов;
  • Поддержка регулярных выражений.
  • Резервирование и восстановление
  • Создание резервных копий при сохранении;
  • Система повтора и отмены.
Оцените статью