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.

Remove the unnecessary symbols in code examples

See original GitHub issue

Use case: I want to be able to copy and paste code from out documentation into my (sql) console. This isn’t possible right now, as there are leading dots with new lines like so: image

Feature description: Only use valid code in examples and move any additional info in valid comment syntax e.g.:

CREATE FUNCTION my_subtract_function(integer, integer)
RETURNS integer
LANGUAGE JAVASCRIPT
AS 'function my_subtract_function(a, b) { return a - b; }';
-- CREATE OK, 1 row affected  (... sec)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mfusseneggercommented, Oct 12, 2020

We could also try out using testcode and testoutput directives: https://www.sphinx-doc.org/en/master/usage/extensions/doctest.html#directive-testcode

That might allow us to leave out the dots

0reactions
proddatacommented, Jul 21, 2021

Since we now integrated the copy-button, I will close this 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python | Removing unwanted characters from string
So our task is to remove the unwanted characters from the string. Removing symbol from string using str.isalnum().
Read more >
Remove Characters in String Except Alphabets - Programiz
In this C programming example, you will learn to remove all the characters from a string entered by the user except the alphabets....
Read more >
How to Remove Special Characters from String in Java
In the following example, the removeAll() method removes all the special characters from the string and puts a space in place of them....
Read more >
How to delete special / unwanted characters in Excel - Ablebits
On the Ablebits Data tab, in the Text group, click Remove > Remove Characters. · On the add-in's pane, pick the source range,...
Read more >
Remove Special Characters From String Python - Scaler Topics
The above code is the simplified version of the previous example used to remove special characters from a string in python.
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