skip to Main Content

While writing internal documentation of proccess I’d like to be easily to copy the code, so don’t using any images, but the code be colourful like in the IDE that we are already used to.

Can I have any free tool to use, or even a free site that I could format text?

My expectation is to create something simple, for example:

SELECT TOP 10 * FROM my_table

<span style="color: blue">SELECT TOP</span> <span>10</span> <span color="gray">*</span> <span color="blue">FROM</span> <span>my_table</span>

Then I could paste it on the doc

What did you try and what were you expecting?
I tried to solve by using Excel and making PROCV of the commmon words to a list that has the second column with the color for that keyword, it works but it is something that everyone would need this file to use the same

2

Answers


  1. This isn’t really a SQL Server question, but I can understand why you have tagged it as such.

    Consider using highlight.js: https://highlightjs.org/#usage

    Login or Signup to reply.
  2. Set the color theme for the IDE
    1.On the menu bar, select Tools > Options.
    2.In the options list, select Environment > General.
    3.In the Color theme list, choose between the Blue theme, the Blue (Extra Contrast) theme, the default Dark theme, and the Light theme.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search