Wowee! Another oversight block!

Using the SciSnap! library, I found the set cursor block. Now me, being the silly teenager I am, I decided to look into the code and find something interesting!

The code for the cursor defaults to url("...") if it's not an actual cursor name, like auto, pointer, text, etc., and the cursor style supports SVG! Now that's not the oversight part. The oversight part is the image offset (url("...") 8 8) so that the image fits the cursor hotspot perfectly. Again, since the code defaults to url("..."), I added some bypassing that adds the offset! :wink:

cursor

The text essentially does this:
It creates an image from the SVG using URI component stuff, then adds a ") to the text, basically closing the url(" part. Then it adds the numbers, making it ") 8 8. Finally, like the oversight in my formatting library, it basically repeats the initial part of the code, finally making it ") 8 8, url(". This ends up looking like $$\texttt{\color{dodgerblue}url("}\texttt{\color{limegreen}...") 8 8, url("}\texttt{\color{dodgerblue}")}$$, which is correct syntax, making it work perfectly!

(blue: original contents, green: added text)

Have fun styling your cursor to your heart's content! :slight_smile:

it doen't work when i try it with a svg drawing i made :confused:

Does it contain any width="32" and height="32" properties?

Or could you send me the SVG code and I can fix it for you?

it indeed has a width and height atributes, but they are not set to 32

Ah, there are width and height limits

ok

How did you do that beautiful syntax highlighting?

I used \texttt{text} and \color{color} to create colored code like so:

$$$\texttt{{\color{dodgerblue}method}{(}{\color{limegreen}"string"}{, }{\color{gold}42}{)}}$$$

\texttt{
  {\color{dodgerblue}method}
  {(}
  {\color{limegreen}"string"}
  {, }
  {\color{gold}42}
  {)}
}

Man I wish I knew how to add LaTeX in your messages tho :stuck_out_tongue:

$$\LaTeX$$

$$\LaTeX$$

$$$\LaTeX$$$

$$$\LaTeX$$$

$$\texttt{{\color{blue}im blue da ba dee da ba di}}$$

$$\texttt{{\color{blue}im blue da ba dee da ba di}}$$

cool

that is way to much work for just \texttt{{\color{blue}im blue da ba dee da ba di}}

$$\KaTeX$$ renders $$\texttt{{\color{Yellow}it} {\color{Green}all}{\color{Red}!}}$$ :nerd: