changeset 36449:02d9b7497d7c draft

runtime(2html): Make links use color scheme colors in TOhtml Commit: https://github.com/vim/vim/commit/b256221e8377abba3c121d612c559006a9233052 Author: Max Bernstein <tekknolagi@gmail.com> Date: Sat Nov 2 18:48:53 2024 +0100 runtime(2html): Make links use color scheme colors in TOhtml The browser-default dark blue/purple colors don't fit in with most color schemes and also are unreadable if the color scheme has a dark background. closes: #10191 Signed-off-by: Max Bernstein <tekknolagi@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Nov 2024 19:00:03 +0100
parents 3363588b46a2
children 56e749acdce8
files runtime/syntax/2html.vim
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/2html.vim
+++ b/runtime/syntax/2html.vim
@@ -1,6 +1,6 @@
 " Vim syntax support file
 " Maintainer: Ben Fritz <fritzophrenic@gmail.com>
-" Last Change: 2023 Sep 05
+" Last Change: 2024 Nov 02
 "
 " Additional contributors:
 "
@@ -1843,6 +1843,10 @@ if s:settings.use_css && !s:settings.no_
   " default font size for different elements
   call append('.', '* { font-size: 1em; }')
   +
+  " use color scheme styles for links
+  " browser-default blue/purple colors for links don't look like the existing theme and are unreadable on dark backgrounds
+  call append('.', 'a { color: inherit; }')
+  +
   " if we use any input elements for unselectable content, make sure they look
   " like normal text
   if !empty(s:settings.prevent_copy)