• Login
Community
  • Login

bookmark line color

Scheduled Pinned Locked Moved General Discussion
bookmark color
5 Posts 2 Posters 5.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    notepad347
    last edited by Oct 30, 2016, 7:58 AM

    How can a line color for a bookmark be changed?
    Maybe something like
    <WidgetStyle name=“Bookmark” styleID=“36” bgColor=“FF0000” fontStyle=“0” fontSize=“10” />

    in
    …\Notepad++\stylers.xml
    ?

    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by Oct 30, 2016, 2:21 PM

      Currently that’s not possible because the built-in bookmark is an actual image. However with a plugin you could change it to any of the following (and change the colors)

      bookmarks

      1 Reply Last reply Reply Quote 0
      • N
        notepad347
        last edited by Oct 30, 2016, 5:00 PM

        If I have in Preferences -> Editing -> Display bookmark (un check)
        there is no green circle, but a line is dark in white background, but is hardly visible, it is better visible in dark background, in that case the line is lighter.

        So, if I understand correctly, if I un check “display bookmark”, we talk about line color, not an image ?

        1 Reply Last reply Reply Quote 0
        • D
          dail
          last edited by Oct 30, 2016, 5:22 PM

          Oh, I see what you are saying now. :)

          AFAIK this isn’t configurable through any config file (although not a bad idea), but you can do it with a plugin. You can do this with PythonScript but I’m not familiar enough with it. LuaScript is more lightweight and easier to install.

          1. Install LuaScript via the Plugin Manager.
          2. Go to Plugins > LuaScript > Edit Startup Script
          3. Add the following to the script.
          -- This value is a hex color. NOTE: this is BGR values not RGB
          editor.MarkerBack[24] = 0xFF0000
          -- Opacity between 0 and 255
          editor.MarkerAlpha[24] = 128
          

          You can tweak this to whatever you want. When you restart N++ then it should work fine.

          1 Reply Last reply Reply Quote 0
          • N
            notepad347
            last edited by Oct 30, 2016, 5:23 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors