Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Freon SandozF

      Unexpected match when searching files for an end-quote character (non-ASCII)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      35 Views
      CoisesC

      @Freon-Sandoz said in Unexpected match when searching files for an end-quote character (non-ASCII):

      The text is from a Perl script I wrote long ago. Notepad++ identifies the file as “ANSI” and it appears to be encoded as Windows-1254, although Notepad++ doesn’t identify it as such.

      When Notepad++ opens a file as ANSI, it is using the default code page for your system. Is the default code page for your system Windows-1254? (One way to tell would be to copy the Debug Info… from the ? menu. Among other useful diagnostic information, it lists the Current ANSI codepage.)

      If your code page is not 1254, then try opening the file in Notepad++ and immediately — before you do anything else! — select Encoding | Character sets | Turkish | Windows-1254. That will cause Notepad++ to reload the file and interpret it using the specified code page.

      I’m not convinced that is the problem, though. In the screen shot you included, the quotes look like straight quotes, not typographic quotes. You’ve highlighted the quote mark, but that appears to be just your selection, not the result of a search; I think the search you show in that screen shot will not (and should not) match.

      So I think it’s more likely that the problem lies in whatever led you to think that there is a non-ASCII end quote in the file. You say you didn’t expect a curly quote and it looks like you don’t have one. What sort of file search did you do that led you to think there was one?

    • Z

      NppCSharpPluginPack: how to add toolbar buttons?

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      95 Views
      Mark OlsonM

      @ZedZipDev

      Core maintainer of NppCSharpPluginPack here.

      It’s pretty hard for me to diagnose your problem if you don’t share a link to your full codebase with me. However, it looks to me like you’re calling SetToolbarImage in the CommandMenuInit method, which I don’t think you should do. In the current version of the plugin pack, you may notice that in the beNotified method of UnmanagedExports.cs, the SetToolbarIcons method is called, which initializes all the toolbar icons for the plugin.

      Truth be told, I have never studied the relevant sections of the Notepad++ codebase well enough to fully understand what’s going on with toolbar icons. I’ve just mostly gone with what worked in the old NotepadPlusPlusPluginPack.Net in this instance.

    • Lionel LagardeL

      C++11 raw string literal syntax hightlighting

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      1 Votes
      3 Posts
      120 Views
      Lionel LagardeL

      thank you