question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow HTML <mark> tags

See original GitHub issue

I love Prism, but I’m a little confused about why it is mutually exclusive with my own highlighting. Let’s say I want to highlight an annotation in Java:

<pre ><code class="language-java">package com.example;

public class Point
{

  …

  <mark>@Deprecated</mark>  //NOTE: annotation
  public double calculateSlope(final int x2, final int y2)

If I use just plain HTML5, the <mark> tag makes a nice highlighted section, e.g. with a yellow background. But Prism makes it as if I had never even used the <mark> tag. Why can’t I use both? It would sure be useful to use Prism, yet maintain the ability to highlight certain passages.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
garretwilsoncommented, Jun 3, 2016

I just wanted to say that I’ve been using <mark> for a while in Prism, and it’s working like a dream! So useful. Thanks for the effort done to get this working.

0reactions
garretwilsoncommented, Feb 11, 2016

Oh, I see—that’s a pull request. Someone had indicated a commit ID, so I thought that was the code. I haven’t worked with pull requests on GitHub. So the fix was just to remove the whole thing. OK, if that works.

Sorry for static, and thanks for pointing me in the right direction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML mark Tag - W3Schools
Definition and Usage. The <mark> tag defines text that should be marked or highlighted. ... The <mark> tag also supports the Global Attributes...
Read more >
The Mark Text element - HTML: HyperText Markup Language
The HTML element represents text which is marked or highlighted for ... Tag omission, None, both the starting and ending tag are mandatory....
Read more >
HTML: <mark> tag - TechOnTheNet
The HTML <mark> tag is used to mark or highlight text that is of special interest or relevance in an HTML document. Browsers...
Read more >
Highlight text with HTML <mark> tag | SamanthaMing.com
Need to highlight a text, use the HTML5 mark tag. This is a more semantic option that will easily style your highlighted text...
Read more >
<mark> HTML Tag »
The <mark> element is used to highlight text inside of another element such as a paragraph, list, or table. Text to which the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found