How to get text and/or scintilla handle for background file?



  • Hack? It’s easy to implement in the source code.



  • This post is deleted!


  • @KnIfER

    A HTML previewer plugin requires such feature

    The existing Preview HTML plugin works just fine as is, because expecting that the user saves ancilliary files (like a CSS file accompanying an HTML file) is not an onerus expectation of the user.

    It’s easy to implement in the source code.

    Like other regulars on this forum, I am amazed at how often phrases like that are bandied about. If you have the skills to implement such a fix easily, then implement it and provide a Pull Request to get it incorporated; if you have the skills but are unwilling to do the work, then it is your own fault the codebase isn’t updated; if you don’t have the skills, then you are not actually in a position to judge how easy or difficult the task might be.

    Besides, you have been here long enough to know (or at least long enough to have had opportunity to learn) that if you have a feature request, this forum is not the place to make it official. You can discuss topics here, and we’re happy to answer if we know such a feature already exists or suggest workarounds if they don’t; and it’s a great place for finding out if others think your feature request is a good idea or not; but in the end, if no one has put in an official feature request, as explained in one of this forum’s FAQs, then it’s just discussion and not an official request.



  • This post is deleted!


  • @PeterJones

    You words are so long and I can bearly understand all of them. XD

    Anyway , when I am saying something is easy to achieve, I probably have already achieved such goals or at least some working prototypes, that’s my style.

    Here is a short video of what it shall look like —— the two “chained updating” demo. In the example, when the shader source file is modified, the web-based shadertory preview updates immediately.

    Please, don’t let the imagination limit you.



  • @KnIfER said in How to get text and/or scintilla handle for background file?:

    You words are so long and I can bearly understand all of them.

    Oh, boy. LOL

    Here is a short video of what it shall look like

    Why does anyone care about this?

    @KnIfER I’ve read a good number of your postings here, as well as on github, and I’m left with, well, a general feeling of confusion about what you are trying to communicate, in pretty much all of your postings.

    At least @PeterJones writes with a style and length to make his information understandable.



  • This post is deleted!


  • This post is deleted!


  • @Alan-Kilborn
    You are being off-topic for your comments. just leave and dont reply if you don’t like @Derek Brown’s ideas about NotepadPlusplus and scintilla .

    Well , I styled my text this time, if you say.



  • @KnIfER

    Yep, you continue to make zero sense, as far as I can see; anyone else make any sense out of what this person is saying?
    It’s a shame because you probably have some good ideas to share.



  • Some alien person:

    Why does anyone care about this ( the video )?

    This guy has never understood the subject of this article. The video accurately demostrates the possibility of “getting text and/or scintilla handle for background file”.



  • This post is deleted!


  • @Alan-Kilborn Yep, you continue to reply your none-constructive words; anyone else make any sense out of what this persn and it’s crap?



  • @KnIfER said in How to get text and/or scintilla handle for background file?:

    just leave and dont reply if you don’t like @Derek Brown’s ideas

    People are allowed to express their opinion in this forum, even you.

    And, as a reminder,

    • if you have a feature request, this forum is not the place to make it official. You can repeat loudly about how easy it is to implement to your heart’s content, but if there hasn’t been an official feature request in the github, it is not official and nothing will be done about it.
    • if you have the skills to implement such a fix easily – and you have now claimed that you do – then implement it and provide a Pull Request to get it incorporated
    • if you have the skills but are unwilling to do the work, then it is your own fault the codebase isn’t updated

    It’s now up to you: either put in the feature request, preferrably with a suggested implementation, or it’s your own fault that nothing has happened. Either way, you need to understand that no amount of arguing with the forum regulars here in a discussion forum will accomplish anything other than to annoy readers of this discussion.



  • Even you are allowed to express your opinion this forum, glad to know!

    It’s a shame because you probably have some good ideas to share.

    What’s your shame, why did you blame me?



  • @KnIfER said in How to get text and/or scintilla handle for background file?:

    You words are so long and I can bearly understand all of them. XD

    Are you saying I use words with too many letters in them? Or that I string together too many words?

    I will admit that I am wordy. I do that to try to eliminate ambiguity and make things clear. If you aren’t a native English speaker, then maybe my sentence structure becomes too complex. (But I know there are forum regulars who are non-native English speakers, so it’s not impossible to understand me. deepl.com has a translator that some think does a better job that google translate, if you are looking for recommendations.) I find that if I try to limit myself to short sentences, it does not accurately convey my ideas.

    But I will try:

    You appear to have some coding skills.
    You claim to know how to do this easily.
    What stops you from putting in a feature request?
    What stops you from putting in a pull request?

    Direct insults are not tolerated in this forum. Saying “some alien person” or “this person and its crap” are direct insults. Direct insults will be downvoted.



  • I’ve mixed you two ( PeterJones and Alan Kilborn ) into one. I thought I was talking to one person…



  • Saying “this person and its crap” are direct insults. I agree and regret.

    I am interested in how to integrate IE control in a win32 plugin and display in-memory contents ( in this case scintilla buffers ). It seems that the existing HTML previewer is written in Delphi. Delphi is completely strange to me.



  • Getting background text shouldn’t be too difficult, if not easy. You need to deal with pointers, and various encodings. But if you want a quick working example to proof your concept, you can modify the NPP source code, like below:



  • @KnIfER said in How to get text and/or scintilla handle for background file?:

    But if you want a quick working example

    I don’t want it. If you want the feature, you have to make a feature request. After you make a feature request, explain there how you think it should be implemented. Or better, do an actual pull request to ask to have your code put directly into the notepad++ source code.

    This forum doesn’t change the codebase. Telling me how to do it won’t help anybody, because I am not one of the developers.


Log in to reply