From c14da7be2216e59cca788f3c40843a91624b3762 Mon Sep 17 00:00:00 2001 From: "Gerard (Gerry) Caulfield" Date: Wed, 22 Jul 2020 01:49:49 +0200 Subject: [PATCH] Fix highlighting for mostly SQL block When using Rouge's Console lexer it expects all ignored line breaks to be proceeded by a backslash. In this code block as we are switching to Mysql's command line which doesn't need a backslash. This leads to the lexer breaking and all the lines ending up in a confusing mess. However the sql syntax actually works much better for this block anyway. This line here shows why what we were trying to do wouldn't work with Rouge: https://github.com/rouge-ruby/rouge/blob/844c0eeddf7626605fa04b901df6c15c953811d6/lib/rouge/lexers/console.rb#L106 --- guides/source/development_dependencies_install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/development_dependencies_install.md b/guides/source/development_dependencies_install.md index 5379ab6349..f5d8f2cf38 100644 --- a/guides/source/development_dependencies_install.md +++ b/guides/source/development_dependencies_install.md @@ -156,7 +156,7 @@ required for running Active Record tests. In order to be able to run the test suite against MySQL you need to create a user named `rails` with privileges on the test databases: -```bash +```sql $ mysql -uroot -p mysql> CREATE USER 'rails'@'localhost';