LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Convert a TextPad Syntax Definition To Gedit (https://www.linuxquestions.org/questions/linux-software-2/convert-a-textpad-syntax-definition-to-gedit-816416/)

nathanpc 06-25-2010 05:14 PM

Convert a TextPad Syntax Definition To Gedit
 
Hello,
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

pcardout 07-16-2010 03:33 AM

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.

MTK358 07-16-2010 06:44 AM

Quote:

Originally Posted by pcardout (Post 4035047)
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.

pcardout 07-16-2010 09:44 AM

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.

http://www.vim.org/scripts/script.php?script_id=888

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).


All times are GMT -5. The time now is 11:07 AM.