I have a very large block of code in my .rst file, which I would like to select only a small part and make it bold. Consider the following rst:
wall of text. wall of text. wall of text.wall of text. wall of text. wall of text.wall of text. wall of text. wall of text. wall of text. wall of text. wall of text.wall of text. wall of text. wall of text.wall of text. wall of text. wall of text. **Example 1: Explain showing a table scan operation**:: EXPLAIN FORMAT=JSON SELECT * FROM Country WHERE continent='Asia' and population > 5000000; { "query_block": { "select_id": 1, "cost_info": { "query_cost": "53.80"
When it converts to html, it highlights the default syntax (good), but I also want to specify a few lines that should be bold (those that have comments on them, but possibly others).
I was thinking of adding a string of characters to the string (.eg #@@ ) and then writing a post-parser script to modify the generated html files. Is there a better way?
restructuredtext python-sphinx
Morgan tocker
source share