Hi LAMMPS community,
I haven’t seen any kate text editor installation guide. It took me a while to figure out what to do, so I hope this email will help whoever would like to use kate syntax highlighting in tools/kate/ that comes along with lammps
-
copy the tools/kate/lammps.xml to /usr/share/kde4/apps/katepart/syntax/ (in ubuntu)
-
in Kate, go to Settings > Configure Kate… > Applications > Plugins > check both XML Completion and XML Validation box
-
require input with specific extensions (line 17 in tools/kate/lammps.xml)
“.lgg;.lmp;.lammps;.liggghts”
-
reboot your computer if necessary
Cheers,
Anh
Hi LAMMPS community,
I haven't seen any kate text editor installation guide. It took me a
while to figure out what to do, so I hope this email will help whoever
would like to use kate syntax highlighting in tools/kate/ that comes
along with lammps
1. copy the tools/kate/lammps.xml
to /usr/share/kde4/apps/katepart/syntax/ (in ubuntu)
You can copy lammps.xml to '$HOME/.kde/share/apps/katepart/syntax/' to avoid messing with '/usr' .and|or you're the only user.
2. in Kate, go to Settings > Configure Kate... > Applications > Plugins
> check both XML Completion and XML Validation box
3. require input with specific extensions (line 17 in tools/kate/lammps.xml)
"*.lgg;*.lmp;*.lammps;*.liggghts"
4. reboot your computer if necessary
No need to, at most close kate/kwrite and open back.