RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.57k stars 235 forks source link

Could the caret be a little bit wider? #402

Closed hwkmueller closed 6 years ago

hwkmueller commented 6 years ago

Is it possible to make the caret in the main editor a little bit wider, maybe 3 or 4 pixel, like that in the searchbox? I'm on a highresolution screen ...

RickStrahl commented 6 years ago

The caret is controlled via CSS and you can customize that but it's a bit sketchy because the CSS gets replaced on updates.

In editor.css you can do:

.ace_cursor { 
    border-left: 4px solid !important;
}

to effect the cursor.

I think what we probably need to make this more palatable is an extension like editor-user.css that can get loaded if it exists.

hwkmueller commented 6 years ago

Ah, yes, thank you. For the meantime the standard-css will do.

Am 7. Juli 2018 19:13:39 schrieb Rick Strahl notifications@github.com:

The caret is controlled via CSS and you can customize that but it's a bit sketchy because the CSS gets replaced on updates. In editor.css you can do: .ace_cursor { border-left: 4px solid !important; } to effect the cursor. I think what we probably need to make this more palatable is an extension like editor-user.css that can get loaded if it exists. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

RickStrahl commented 6 years ago

So I added support for the editor-user.css file that is not installed and which won't be updated, so you can add customizations to the editor styling including the above cursor tweak. It'll be in 1.12.6 or later.

For now add this to your editor.html:

link rel="stylesheet" type="text/css" href="editor.css" />

<!-- user overrides can go here -->
<link rel="stylesheet" type="text/css" href="editor-user.css" />

Then put the change into editor-user.css. Once the update ships your change will still be there.

hwkmueller commented 6 years ago

Works fine, thank you

2018-07-07 20:19 GMT+02:00 Rick Strahl notifications@github.com:

Closed #402 https://github.com/RickStrahl/MarkdownMonster/issues/402.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RickStrahl/MarkdownMonster/issues/402#event-1721573788, or mute the thread https://github.com/notifications/unsubscribe-auth/AnBJkncCYBVqRYNdLJDdplsoseY5DILlks5uEPuvgaJpZM4VGUAN .