roslaunch syntax highlight for qt creator
Hi,
Did someone used roslaunch
syntax highlight in qt creator
? How to do it ?
thanks.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi,
Did someone used roslaunch
syntax highlight in qt creator
? How to do it ?
thanks.
The solution mentioned here to use Tools->Options->Generic Highlighter path and copying a file didn't work for me, because that path is just empty.
What actually worked was this:
1. Going to Tools->Options->Environment->MIME Types
2. Filter for xml
3. Click on the entry "application/xml
4. in The field "Patterns" append ";*.launch" to the already existing patterns
The solution that worked for me was:
xml.xml
in one of the paths noted above.launch.xml
(You might need sudo to do this). Then edit the line that starts with <language name="XML"
by adding *.launch
to the extensions="...
argument. Mine looks like this now:<language name="XML" version="2.03" kateversion="2.4" section="Markup" extensions="*.launch;*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
Hi @Nicky0201, you probably don't have the necessary rights. As I mentioned in my answer, you can try editing the file, using the sudo
command in the terminal.
The way to get syntax highlighting is actually pretty simple. Open QtCreator and go to Tools->Options->Generic Highlighter. Then navigate to whatever directory is listed. Lastly,
cp xml.xml launch.xml
You may need to sudo that command, depending on where it is installed. After that, you should be good.
Asked: 2014-07-10 04:37:32 -0600
Seen: 1,878 times
Last updated: Dec 13 '19
I am not using qt creator but roslaunch is XML
i am using qt creator but its not detecting .launch extension as xml