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 | Q&A answers.ros.org |
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2014-07-10 04:37:32 -0500
Seen: 1,746 times
Last updated: Dec 13 '19
QtCreator works very slow with ROS on Ubuntu 16 (14 OK)
Exporting action client as class library to QtCreator
No link elements found in urdf file
How do i open ros package on qtcreator
Can I find ROS topics (publishers and subscribers) only from launch file?
I am not using qt creator but roslaunch is XML
i am using qt creator but its not detecting .launch extension as xml