Git Product home page Git Product logo

dail8859 / scintilluaplusplus Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 4.0 2.24 MB

Notepad++ plugin for Scintillua's LPeg lexers.

License: GNU General Public License v2.0

C 12.46% HTML 20.18% Makefile 1.89% Lua 7.60% CSS 0.06% Roff 0.07% C++ 50.62% Objective-C 0.65% Objective-C++ 3.55% PLpgSQL 0.12% Shell 0.02% Batchfile 0.01% QMake 0.13% Python 2.42% Perl 0.21% ASP 0.01% PHP 0.01% Ruby 0.01% Visual Basic 0.01% PowerShell 0.01%
notepad-plus-plus plugin

scintilluaplusplus's People

Contributors

chcg avatar dail8859 avatar nbred5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

scintilluaplusplus's Issues

Failed to set LPeg lexer

The file is there, tried copying and renaming (to remove _x64) and still get the error...
If you could please help me, user defined languages are pretty bad, was hoping to use this instead...

lpeg 1.0.1

See http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.1.tar.gz

Version 1.0.1 is available. Documentation of the changes seems to not exist. Build with this version seems to be ok.

From test.lua:

-- bug in 1.0: failed match-time that used previous match-time results
-- bug in 1.0: problems with math-times returning too many captures

Would you like to receive a PR on this?

exceptions with np++ 7.7.1 and Scintillua++ 1.2

Recentyl I updated my Notepad++ and the plugin folder structure changed. I could make run all the plugins but with Scintillua++ I have some issues.

When I start NP++ and click Plugins > Scintillua++ > Create New Language Definition a new document is created with the basic structure and I receive this error:

CreateNewLanguage

The other issue I have with an own create lexer. This lexer was working fine before. When I open a a file what should be highlighted with this lexer I receive this error:

ShowFile

This is the debug information from Notepad++:

Notepad++ v7.7.1 (32-bit)
Build time : Jun 16 2019 - 21:14:50
Path : C:_PortablePrograms\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 7 (64-bit)
Plugins : DSpellCheck.dll Explorer.dll LanguageHelp.dll LuaScript.dll MenuIcons.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll PythonScript.dll Scintillua++.dll

The Scintillua dll is located here:
C:_PortablePrograms\Notepad++\plugins\Scintillua++\Scintillua++.dll
The *.lua files are located here:
C:_PortablePrograms\Notepad++\plugins\Config\Scintillua++...
The configuration is located here:
C:_PortablePrograms\Notepad++\plugins\Config\Scintillua++.ini

Can you please have a look what is going wrong here? Is there a log or other debug information to collect more data out of this exeptions?

colorization is lost when file is changed extern

When the file is changed by another program and notepad++ detect the change, the colorization is lost. Also edit the file in notepad++ will not bring back the colors. A tab change to another file in notepad++ and change back bring also the colors back.

do not deliver Scintillua++.ini in the zip file

When the user make changes in the ini file, it would be good, if the ini file is not part of the update.

Maybe a template could be put in the zip file and the plugin detect if the ini files is not in the config folder and create it by itself with the default values. Then it will be not overwritten when it is already there.

Thanks for the nice plugin. It's much easier to create own syntax highlighting in this way.

Better error reporting

SCI_GETSTATUS can be used to check for Lua error messages. Possibly check this after Colourise() to see if the initial lexing worked.

Also Scintilla recommends checking to make sure setting a lexer actually worked:

To test if your lexer assignment worked, use SCI_GETLEXER before and after setting the new lexer to see if the lexer number changed.

Explicit lexer menu

Is there a way to add one particular lexer menu/toolbar icon? Right now if I choose a built-in language lexer, the overriding gets lost and I have to restart the program to make scintillua lexer work again.

Question: how to use own language with functionList

How can I use the own syntax highlighting with the functionList.xml from N++? I tried to write the name what is displayed in the lower left corner of the status bar, but it does not work. What LangID or userDefinedLangName is needed?

As a workaround I create a user defined language with the needed extensions and setup this in the functionList.xml.

But somehow this is not working anymore with version 1.2

My N++ version is 7.4.1 32bit

Block comment not working

This is a great plugin, but unfortunately the "block comment"-function is not working. It's the same like opening a file without extension - if notepad doesnt know the extension you can't block-comment. Is there a workaround for this? I have not found a Notification callback for "Block comment insert" but maybe there is another way?

Or would it be possible to add this function to scintillua++ ... like defining the comment-chars or something? I have no experience with lua or scintilla - i'm a web developer and i just want to highlight my scss-files in a better way then with the user defined languages. Sorry for my strange english ... i'm from germany.

Keep up the good work and best regards

need help to create a new lexer

Hi,

I try to create a new lexer for Denso robots. The source files are recognized as "densopacscript (lpeg)", but nothing is highlighted or folded. Attached is the ini, the lua file and a sample sourcecode file. Can you give me some hints what I made wrong?

ScintilluaPlusPlusDenso.zip

Thank you very much.

Scintillua++ 1.2 not working with Notepad++ 7.5.8 on Windows 7

I can get Scintillua++ 1.2 to work with the 32- and 64-bit versions of Notepad++ 7.5.8 on Windows 10, but not the 32-bit version on Windows 7 (I haven't tried the 64-bit version). The error message when Notepad++ starts is this, even though I am using the 32-bit version of both programs:

Cannot load 64-bit plugin.

Scintillua++.dll is not compatible with the current version of Notepad++.

Do you want to remove this plugin from the plugins director to prevent this message from the next launch?

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.