Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-25-2010, 06:14 PM   #1
Registered: Aug 2009
Location: Brazil
Distribution: Ubuntu Lucid
Posts: 45

Rep: Reputation: 15
Convert a TextPad Syntax Definition To Gedit

There is anyone here that can say if there is an application that could convert a TextPad Syntax Highlighting File(*.syn) to Gedit one(*.xml), or anyone here that is interested to convert this?

Here is the file that I want to be converted: ARM Assembly

Best Regards,
Nathan Paulino Campos
Old 07-16-2010, 04:33 AM   #2
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Linux Mint, XUbuntu
Posts: 218

Rep: Reputation: 24
Sorry to see you haven't gotten any responses. My response may not be too helpful, but "use gvim". Vim is "VI improved" one of the two "true editors"
for Linux. While Vim may not be user friendly (at first) gvim allows you to cut and paste and be as Windowy as you want (and it does run on Windows, and Linux).

I didn't look at your .asm because you were making me unzip it first ... But gvim knows how to highlight .asm so you don't need your highlighting file.

Let me know if this helps.
Old 07-16-2010, 07:44 AM   #3
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 715Reputation: 715Reputation: 715Reputation: 715Reputation: 715Reputation: 715Reputation: 715
Originally Posted by pcardout View Post
But gvim knows how to highlight .asm
But .asm can be any assembler, and the assembly languages from different CPUs aren't even remotely similar.
1 members found this post helpful.
Old 07-16-2010, 10:44 AM   #4
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("lenny", "squeeze"), Linux Mint, XUbuntu
Posts: 218

Rep: Reputation: 24
Yes -- you'll have to do a custom file -- and that does go back to your original request. But it shouldn't be so bad.
Under your home directory make a .vim directory and a subdirectory under that called ~./vim/syntax.

Make a file called armasm.vim and go to town. Fortunately, because vim is a "one true editor", there is lots of
support already. For example, I found an armasm.vim file already made on the web.

I know editors are very personal things ... but you won't be sorry to learn vim. It works everywhere and will exist (and be free)
even when we are walking around with quantum bio-computers on our fingernails... I know the Ubuntu folk talk about gedit a lot.
It's OK, but why reinvent the wheel? To learn vim commands, do a sudo apt-get install vimtutor. Of course you can start with the
point and clicky interface, but command line is faster once learned ...

Finally -- since you are doing .asm programming, I assume you are an embedded systems programmer. Therefore, you must be wanting
something that doesn't need a GUI so you can debug your embedded code on the target through a serial port (or whatever character
oriented interface). You can't use gedit in an embedded system, but you can use vi (which is the stripped down vim).

Last edited by pcardout; 07-16-2010 at 10:51 AM. Reason: Add detail.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Snmp mib file definition :: Syntax for time narendra1310 Linux - Software 0 05-31-2010 03:47 AM
gedit: Syntax highlighting slow for large files Arancaytar Linux - Software 4 07-07-2009 07:16 AM
Syntax highlighting in Gedit jriis Linux - Software 1 10-24-2005 07:16 AM
GEdit syntax highlighting for ruby dublinclontarf Programming 0 08-18-2004 02:19 PM
Is it possible that you can set up syntax highlighting for gedit? ICO Linux - General 3 12-18-2003 09:17 PM

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration