Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017167

    My client is a software developer and doesn’t like how code is displayed with the alternating white/gray lines.

    DATABASES = {
        'default': {
            'ENGINE': 'sql_server.pyodbc',
            'HOST': '(LocalDB)\ProjectLocalDB',
            'PORT': '',
            'NAME': 'my_db',
            'USER': 'my_user',
            'PASSWORD': 'my_password',
            'OPTIONS': {
                'driver': 'ODBC Driver 13 for SQL Server',
            },
        },
    }

    He wants instead just to have numbered lines, more like this:

    code

    I’ve tried a couple of plugins, and they don’t seem to work. What do you recommend?

    #1017264

    Hey Adrianne,

    This is a matter of using the WordPress default editor. If you want the line numbers, you would have to paste the code into your own code editor.

    Best regards,
    Jordan Shannon

    #1017567

    I want the background to be one color – gray, not striped. I don’t care as much about the line numbers.

    #1017734

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    pre {
      background-image:none !important;
    }

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.