Menu

kate-kde-BaCon-syntax-highlighting

big-bass
Attachments
kate-set-bacon.png (213588 bytes)
kate.png (154668 bytes)
kdevelop.png (196490 bytes)
kwrite.png (164952 bytes)

Took some time to sort out all that was needed to give bacon

syntax highlighting on all kde based apps

all Qt is based off KDE syntax highlighting so this also works for bacon and Qt now!

in this folder below are the syntax highlighting for BaCons keywords

I also added a theme that follows the look of my geany syntax highlighting for bacon

https://sourceforge.net/projects/bacon-qt5/files/syntax/

tested on debian and Manjaro

worked for kate ,kwrite ,kdevelop, qtcreator

KATE

KATE showing that it auto detects BaCon now

Kdevelop

Kwrite

manual cut and paste code to install depends on your OS package manager

#I keep the latest bacon syntax for kate here 

https://sourceforge.net/projects/bacon-qt5/files/syntax/



#you have to recreate those folders if you dont have them

mkdir -p $HOME/.local/share/org.kde.syntax-highlighting/syntax
mkdir -p $HOME/.local/share/org.kde.syntax-highlighting/themes

#then place the freebasic.xml  and bacon.xml inside the syntax folders

cp freebasic.xml $HOME/.local/share/org.kde.syntax-highlighting/syntax
cp bacon.xml $HOME/.local/share/org.kde.syntax-highlighting/syntax

#this is for all kde editors kate and kwrite sets the color theme like geany
cp Bacon_Geany_feel.theme $HOME/.local/share/org.kde.syntax-highlighting/themes

#for KATE
sudo apt-get install kate
sudo apt-get install libkf5syntaxhighlighting*


#now kate will automatically add the correct syntax highlighting
#for bacon.bac files select BaCon
#from Tools->Highlighting->Sources->BaCon



#an extra I added 
#Bacon_Geany_feel.theme





cp Bacon_Geany_feel.theme $HOME/.local/share/org.kde.syntax-highlighting/themes


#now all you have to do is
#in the main window menu of kate
#Settings---->configure kate---->color themes----> IMPORT

#then select the Bacon Geany feel.theme
#and now kate looks the same as geanys bacon syntax 








#just in case you are missing some deps these will pull in almost all
sudo apt-get install qtbase5-dev
sudo apt-get install qtcreator 



#Manjaro  

sudo pacman -S extra/syntax-highlighting

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.