Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello everyone I don't know if there is such thing for copper cube scripting. Although I saw a good code editor for the engine made by @hanicraft. but i wanted to add Coppercube to one of the famous code editors. So I made CoperCube autoCompletion ,xml file for notepad++ software. here the link and descriptions: https://github.com/danialabdl/Co... I hope it be useful. GoodLuck. |
||||
|
nice - can you do the same for "sublime text" please? |
||||
|
Fails to import as a user defined language in NPP 8.6.2. |
||||
|
vp wrote: nice - can you do the same for "sublime text" please? Sorry i don't work with sublime and don't know how to do it. |
||||
|
wrote: Fails to import as a user defined language in NPP 8.6.2. Please read the readme file in github. The .xml file should be copied in Autocompletion folder of notepad++ and the language should be defined seperately. |
||||
|
Two major problems with this whole thing; Afaik notepad++ can only display one language at a time. Using this means sacrificing JS highlighting and completion, or constantly switching between two languages. Defining the keywords isn't a hard thing to do, but it's pretty standard to include a UDL xml file when releasing a UDL for notepad++. This is the first time I've seen autocompletion released without also including the language itself. It's a nice effort, but it's a pass from me. |
||||
|
Actually, I take this back because I did find a better way to use it. Just define the keywords within JavaScript's language, and then copy the contents of your included autocomplete underneath the keywords list in the JavaScript autocomplete. One thing to note is that it fed back an error about using the > and < characters in the description string. I had to manually change that to "greater or equal to" and "less than" |
||||
|
Original Notepad++ JS xml with just the CC func names from OP's word list included: https://files.catbox.moe/e4o89f.... |
||||
|
wrote: Two major problems with this whole thing; Afaik notepad++ can only display one language at a time. Using this means sacrificing JS highlighting and completion, or constantly switching between two languages. Defining the keywords isn't a hard thing to do, but it's pretty standard to include a UDL xml file when releasing a UDL for notepad++. This is the first time I've seen autocompletion released without also including the language itself. It's a nice effort, but it's a pass from me. You are right. It's because of my lack of knowledge how to complete this. There is works to do. I try to improve and fix it.thanks for your feedback. |
||||
|
wrote: Actually, I take this back because I did find a better way to use it. Just define the keywords within JavaScript's language, and then copy the contents of your included autocomplete underneath the keywords list in the JavaScript autocomplete. One thing to note is that it fed back an error about using the > and < characters in the description string. I had to manually change that to "greater or equal to" and "less than" Yes. I think maybe it is better choice. However i had convinced myself to switch between two languages. I will add a UDL soon. Thanks. |
||||
|
Guest wrote: Original Notepad++ JS xml with just the CC func names from OP's word list included: https://files.catbox.moe/e4o89f.... Good. Thanks. I included description and parameters in all functions of cc in my xml file. Maybe can be used to a make a better version. |
||||
|
@danialabdl Personally, I'd like a version of the original JS xml for Notepad++ that includes descriptions and parameters for the JS and CC, but I honestly don't use Notepad++, so I'll just stick to VSC. That said, I've used CC's JS API for so long that I remember 99% of it at this point. Thanks for posting your work. |
||||
|
Hi I updated files and and did some essential work. I listened to @redberylftw and others : create a new auto completion file that added cc functions at the end of javascript functions. Also made the UDL file for importing in notepad++. thank you for your help. please check it and tell me if it is good and useful. here link for package: https://github.com/danialabdl/Co... |
||||
|
This is way good. Thank you for your hard work |
||||
|
That's awesome that you created a CopperCube autoCompletion XML file for Notepad++ I'm sure CopperCube users will find your XML file super helpful for streamlining their coding process. It's always cool to see how these little additions can make a big difference in productivity. If you're ever looking for another platform to share your coding resources, you might want to check out https://notesonline.com/. It's a handy tool for taking online notes that vanish after reading, perfect for sharing snippets and resources with others. |
|