Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems about the Search Text highlight (memory consumption, style) #465

Open
MasterInQuestion opened this issue Oct 13, 2024 · 0 comments

Comments

@MasterInQuestion
Copy link

MasterInQuestion commented Oct 13, 2024

    What's the exact implementation of Search Text?
    Does it excessively utilize "const" alike (or bad variable management)?
    Which seems to unnecessarily consume lots of memory.

    Also a new highlighting scheme for reference:
    https://github.com/MasterInQuestion/attach/raw/main/liriliri/eruda/465/Art.webp
    ; that shall address the inefficiency of current.
    .
    Source:
[[

<meta charset="UTF-8" />
<style>
	pre { margin: 0; padding: 0.8em 0.4em; }
	q { quotes: none; border: 1px solid rgba( 255, 0, 255, 0.25 );
	background-color: #FF0; color: #00F; }
</style>
<pre style="background-color: #FFF; color: #000"
	>Art <q>véritable</q> est indépendant de <q>la</q> forme.</pre>
<pre style="background-color: #7f7f7f; color: #FFF"
	>Art <q>véritable</q> est indépendant de <q>la</q> forme.</pre>
<pre style="background-color: #000; color: #FFF"
	>Art <q>véritable</q> est indépendant de <q>la</q> forme.</pre>
<pre style="background-color: #FF0; color: #000"
	>Art <q>véritable</q> est indépendant de <q>la</q> forme.</pre>
<pre style="background-color: #FF0; color: #00F"
	>Art <q>véritable</q> est indépendant de <q>la</q> forme.</pre>

]]
    "rgba( 255, 0, 255, 0.25 )" seems equivalent of "#ffbf40" in this case.
    ("background-color" fuses into "border"..?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant