Coder Social home page Coder Social logo

syntax highlighting about 3p HOT 7 CLOSED

jcaillon avatar jcaillon commented on August 25, 2024
syntax highlighting

from 3p.

Comments (7)

jcaillon avatar jcaillon commented on August 25, 2024

Hello,

I'm not sure exactly what you intend to do;
The way the syntax highlighting works at the moment is :
at each start of the plugin, it will try to modify the file : userDefineLang.xml to add a user language called OpenEdgeABL (as of v1.0.0.0 the plugin will crash if it can't access the file in writing!!! You must have the rights to write in this file with your windows user, this will be fixed in v1.1).

If you manually edit the language definition in the userDefineLang.xml it will be erased, because the plugin overwrite the userLanguage with the name OpenEdgeABL at each shutdown of npp.

So at the moment, you are FORCED to use the syntax i defined; but as i see it can be problematic, i will find an alternative solution for the stable release.

Please tell me if i didn't understand your question right.

and make sure userDefineLang.xml is accessible (Right click on file > Security > Check what's needed to allow total control to current user) or you won't even be able to load the plugin! :)

from 3p.

TestUser013 avatar TestUser013 commented on August 25, 2024

Thanks for the quick response. You understand my question correctly. I want be able to edit standard color scheme :)

And I think, you should add in to folding code 2 style "DO FOR" and "EDITING" keywords.

For examle bloks editing:end and do for:end shoud be able to folding:
prompt-for {..........}
editing:
{..........}
{..........}
end.
{..........}
do for buffer_name:
{..........}
end.

ps: your plugin is the best of the best, thank you! :)

from 3p.

jcaillon avatar jcaillon commented on August 25, 2024

Thank you very much for the support, i appreciate it! I'm glad this can be useful to you :)

I will make sure to add an option to not overwrite the User Defined Language at each shutdown so you can modify it as you wish (this modification will come with release v1.1).

Also note that using a UDL is only a temporary solution, i'm working toward a custom lexer inside the plugin, but as it is not a priority i don't know when i'll implement it!

Thanks for the EDITING keyword, i never used it so i missed it, i added it to the UDL so you can fold the code! As for the DO FOR BUFFER, it already work with the UDL i defined :

image

I'm closing the issue, see you in v1.1.0! ^^

from 3p.

jcaillon avatar jcaillon commented on August 25, 2024

FYI,

The behavior in v1.1.0 will be :
Install UDL if it doesn't exist in the userdefinedlang.xml,
Update it only when 3P updates and only if the option is set :

image

That way you can modify to whatever you like.
I'm curious tho, what modifications do you want to make? :)

from 3p.

TestUser013 avatar TestUser013 commented on August 25, 2024

I just wanted use colors and font from other colors scheme.
It`s color scheme (dark) created by J-Fobos http://rghost.ru/8wjXxHxqx and I like to use this scheme.
If you want, you can include this scheme in to your plugin, J-Fobos will not mind.

This color scheme based on https://github.com/ccleaud/ProgressABL-for-Notepad-plusplus

from 3p.

jcaillon avatar jcaillon commented on August 25, 2024

Ok! I already have everything needed to create new themes for the application and syntax highlighting, ill make sure to include this theme asap ^^

This guy's name ccleaud sounds familiar ;P

from 3p.

ccleaud avatar ccleaud commented on August 25, 2024

^^

from 3p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.