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.

[Question] Code Highlight for Excel Commands Syntax

See original GitHub issue

Hello @ganesshkumar !!!

Sorry to bother you with a question that is not 100% related to this plugin.

I’m, finally starting to migrate my EXCEL knowledge to an Obsidian note and I’d like to ask something …

Do you know if there is an code syntax highlight for EXCEL commands.

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Is there any code syntax that I could use to highlight the arguments of a command in a code block ?

1FAFEB08-1FDC-4AF4-965A-9E9436BDD253


Thanks for your help 😃

I wish you a fantastic day!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FelipeReardencommented, Jun 18, 2022

@FelipeRearden, here is the link to PrismJS’s repo - https://github.com/PrismJS/prism.

Thank you very much @ganesshkumar !!!

Little more context, a rendered syntax like the below

image

We can see that the arguments are not wrapped inside span elements and are not annotated with classes - token, argument or text. If they can wrap the arguments in span with some css classes then we can use some custom css in obsidian to show the alternating arguments in different colors as you are expecting.

This is absolutely amazing @ganesshkumar !!!

I am gonna create the FR and share all of your this knowledge with them.

Let’s hope they add support for this 🙏 🙏 🙏 🙏 🙏

I am gonna close this issue but I keep you updated if/when I get an reply.


Thank you very much for always helping me 😃

Have a great day!

1reaction
ganesshkumarcommented, Jun 10, 2022

It actually depends on what syntax highlighter tool/library Obsidian uses.

Theoretically it is possible to hightlight excel syntax by using something like https://highlightjs.org but it looks like Obsidian is using HyperMD’s syntax highlighting.

Can you check with the Obsidian community over the discord server on the same? If there is no immediate fix from the team, then we can check how to support this. Just wanted to make sure the work is not duplicated across the tool and a plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax highlighting for Excel Formulae - language suggestions
Try using Scala ( lang-scala ). Example: =LAMBDA ( vArg, LET ( v, INT(ABS(vArg)), ev, ISEVEN(v), half, 1/2, high, INT(SQRT(v)+half), ...
Read more >
Excel Conditional Formatting Examples, Videos - Contextures
Use Excel conditional formatting to highlight values that are duplicate entries in a specific column, or in a range of cells (multiple rows...
Read more >
Using formula highlighting - Excel - Microsoft Tech Community
Hi all, The I have been watching the exchanges in the excel boards and noticed no one ever seems to use the formula...
Read more >
[Feature Request] Support for EXCEL Formula Arguments ...
The Note-taking App Obsidian uses PrismJS to highlight code syntax . I am creating a documentation about my EXCEL formula knowledge and I ......
Read more >
Excel conditional formatting formulas based on another cell
Create a conditional formatting rule(s) using these simple formulas: Rule 1 (blue): =$A1=$A2 - highlights the 2 nd occurrence and all subsequent ...
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