I'm trying to make a user defined language for Flex (mxml). It is like xml ... but I can't figure out how to duplicate the xml features.
I can't even get code folding to work, let alone the <mx:Script> tag. I would REALLY like it to work like html (keywords highlight, and the script tag puts in a blue background).
Can anybody give me a little advice? Is this possible?
Is there any way to start from a built-in language? That would be immensely helpful
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for responding. I was aware of those files, but had never thought of changing how XML currently works. I wanted to make a *new* language definition that started with XML, and added keyword highlighting, etc.
So, to make sure I understand you, you were recommending editing those files and changing the XML implementation? Is there a way to copy the XML stuff and create a copy with a different name.
Even if I were to do that, XML doesn't support keywords (it seems), while Flex does. How, for example, could I add a keyword to xml and highlight it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was talking about making a new language by using the existing ones as examples, and maybe copying and pasting code. Whether that works, I can't tell you.
I'd try creating a new language via the User Define Dialog (on the View menu), then examining the created file to see if that would work. If it wasn't sufficient, I'd try cloning a language that was close (e.g., XML) to Flex and edit that one, possibly copying keyword stuff from other languages -- but note that there probably are some internal (.exe) dependencies that can't be changed.
If that doesn't work, you could maybe get the source code and make a custom build, if you are brave and persistent enough.
If I felt better (I'm quite sick at the moment) I might be up to experimenting, but all I can do is repeat my encouragement to you to do the same... --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hola, yo necesito lo mismo que están solicitando aqui, quisiera extender uno de los tipos que están definidos.
Pero no he encontrado la forma de hacerlo.
Cualquier ayuda será bien recibida.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Hello, I need just like they are soliciting here, I wanted to extend one of the types that are defined. But I have not found the form to do it. Any aid will be appreciated. [Translated via Google Translate beta at http://www.google.com/language_tools?hl=en - then adapted a bit]
Open the Styler Configurator dialog by selecting the Settings > Styler Configurator... menu item. Select your language, then select the style you want to change, like "INSTRUCTION WORD". You can then add instruction words. --Joel
I'd start by looking in two places (there may be more) in your Notepad++ install directory: langs.xml and stylers.xml. (These files might also be in your %APPDATA%\Notepad++ directory if there is no doLocalConf.xml file in your install directory.)
Custom language stuff is stored in userDefineLang.xml. I also understand that improvements to this functionality are planned for future releases.
Back up all files before changing them, and be aware that editing them with Notepad++ may not work, as closing Notepad++ will often update its configuration files.
I wish you well with your efforts. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm trying to make a user defined language for Flex (mxml). It is like xml ... but I can't figure out how to duplicate the xml features.
I can't even get code folding to work, let alone the <mx:Script> tag. I would REALLY like it to work like html (keywords highlight, and the script tag puts in a blue background).
Can anybody give me a little advice? Is this possible?
Is there any way to start from a built-in language? That would be immensely helpful
Thanks!
Hi Joel,
Thanks for responding. I was aware of those files, but had never thought of changing how XML currently works. I wanted to make a *new* language definition that started with XML, and added keyword highlighting, etc.
So, to make sure I understand you, you were recommending editing those files and changing the XML implementation? Is there a way to copy the XML stuff and create a copy with a different name.
Even if I were to do that, XML doesn't support keywords (it seems), while Flex does. How, for example, could I add a keyword to xml and highlight it?
I was talking about making a new language by using the existing ones as examples, and maybe copying and pasting code. Whether that works, I can't tell you.
I'd try creating a new language via the User Define Dialog (on the View menu), then examining the created file to see if that would work. If it wasn't sufficient, I'd try cloning a language that was close (e.g., XML) to Flex and edit that one, possibly copying keyword stuff from other languages -- but note that there probably are some internal (.exe) dependencies that can't be changed.
If that doesn't work, you could maybe get the source code and make a custom build, if you are brave and persistent enough.
If I felt better (I'm quite sick at the moment) I might be up to experimenting, but all I can do is repeat my encouragement to you to do the same... --Joel
Hola, yo necesito lo mismo que están solicitando aqui, quisiera extender uno de los tipos que están definidos.
Pero no he encontrado la forma de hacerlo.
Cualquier ayuda será bien recibida.
> Hello, I need just like they are soliciting here, I wanted to extend one of the types that are defined. But I have not found the form to do it. Any aid will be appreciated. [Translated via Google Translate beta at http://www.google.com/language_tools?hl=en - then adapted a bit]
Open the Styler Configurator dialog by selecting the Settings > Styler Configurator... menu item. Select your language, then select the style you want to change, like "INSTRUCTION WORD". You can then add instruction words. --Joel
Para el español: http://www.google.com/language_tools?hl=es
seanhess:
I'd start by looking in two places (there may be more) in your Notepad++ install directory: langs.xml and stylers.xml. (These files might also be in your %APPDATA%\Notepad++ directory if there is no doLocalConf.xml file in your install directory.)
Custom language stuff is stored in userDefineLang.xml. I also understand that improvements to this functionality are planned for future releases.
Back up all files before changing them, and be aware that editing them with Notepad++ may not work, as closing Notepad++ will often update its configuration files.
I wish you well with your efforts. --Joel