docs: def codemirror_parameters(field):
      """
      Filter to include CodeMirror parameters as a JSON string for a single
      field.
  
      This must be called only on an allready rendered field, meaning you must
      not use this filter on a field before a form. Else, the field widget won't
      be correctly initialized.
  
      Example:
          ::
  
              {% load djangocodemirror_tags %}
              {{ form.myfield|codemirror_parameters }}
  
      Arguments:
          field (djangocodemirror.fields.CodeMirrorField): A form field.
  
      Returns:
          string: JSON object for parameters, marked safe for Django templates.
      """
      manifesto = CodemirrorAssetTagRender()
      names = manifesto.register_from_fields(field)
  
      config = manifesto.get_codemirror_parameters(names[0])
  
      return mark_safe(json.dumps(config))