简体   繁体   中英

Ace Editor: Disable shadowed line where the cursor is

I am using Ace editor and I want to disable shadowed line where the cursor is.

Example

I have tried changing themes availables in Ace Mode Creator but all have this line shadowed.

Thanks!

This is a standard setting that doesn't require changing the theme

// e = active editor
e.setHighlightActiveLine(boolean)

Most themes have it set active by default. It should be a standard configurable setting to enable or disable it.

You're looking for:

ie in chrome theme ( https://ace.c9.io/lib/ace/theme/chrome.css ) its

.ace-chrome .ace_marker-layer .ace_active-line {
    background: none
}

Hi I found the boolean attribute from the Ace demo here ( https://ace.c9.io/build/kitchen-sink.html ).

Is called Highlight Active Line

I hope it works for you:)

in vuejs just add readonly="true" and I think it's

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM