ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator I made notepad++ AutoCompletin xml file for CopperCube
person icon
danialabdl
Registered User
Quote
2024-03-15 11:13:23

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.

person icon
vp
Guest
Quote
2024-03-15 14:54:26

nice - can you do the same for "sublime text" please?

person icon
redberylftw
Registered User
Quote
2024-03-15 15:38:34

Fails to import as a user defined language in NPP 8.6.2.

person icon
danialabdl
Registered User
Quote
2024-03-15 17:49:42

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.

person icon
danialabdl
Registered User
Quote
2024-03-15 17:51:33

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.

person icon
redberylftw
Registered User
Quote
2024-03-15 20:02:19

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.

person icon
redberylftw
Registered User
Quote
2024-03-15 20:40:20

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"

person icon
Guest
Guest
Quote
2024-03-15 20:59:34

Original Notepad++ JS xml with just the CC func names from OP's word list included:

https://files.catbox.moe/e4o89f....

person icon
danialabdl
Registered User
Quote
2024-03-16 03:59:29

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.

person icon
danialabdl
Registered User
Quote
2024-03-16 04:02:14

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.

person icon
danialabdl
Registered User
Quote
2024-03-16 04:09:42

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.

person icon
Guest
Guest
Quote
2024-03-16 06:35:46

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

person icon
danialabdl
Registered User
Quote
2024-03-17 18:49:44

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

person icon
redberylftw
Registered User
Quote
2024-03-18 00:18:16

This is way good. Thank you for your hard work

person icon
flexcept
Registered User
Quote
2024-06-07 21:01:32

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.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |