Jump to content

Help:Extension:CodeMirror/Color and style customization/pt

From mediawiki.org
This page is a translated version of the page Help:Extension:CodeMirror/Color and style customization and the translation is 76% complete.
This is a partial list of the CodeMirror CSS classes. The complete list of default CodeMirror styling definitions is on Gerrit.

The colors and styles used in CodeMirror can be overridden by defining your own styles for the classes in the table below in your personal CSS.[1] Please be aware that changing some things like the line height or font size may not work in the 2017 wikitext editor.

Classe(es) CSS Elemento Estilo de CodeMirror
.cm-mw-skipformatting espçaço inicial foo bar
.cm-mw-list asterisco ou símbolo numérico * foo bar, # foo bar
.cm-mw-signature,
.cm-mw-hr
assinatura, linha horizontal ∼∼∼∼, ----
.cm-mw-indenting dois pontos ::: foo bar
.cm-mw-html-entity Entidades HTML &
.cm-mw-comment Comentário HTML <!-- comment -->
.cm-mw-apostrophes-bold,
.cm-mw-apostrophes-italic
negrito e itálico '''bold''' ''italic''
Cabeçalhos
.cm-mw-section-1 cabeçalho de nível 1[2] = Heading =
.cm-mw-section-2 cabeçalho de nível 2[2] == Heading ==
.cm-mw-section-3 cabeçalho de nível 3 === Heading ===
.cm-mw-section-4 cabeçalho de nível 4 ==== Heading ====
.cm-mw-section-5 cabeçalho de nível 5 ===== Heading =====
.cm-mw-section-6 cabeçalho de nível 6 ====== Heading ======
.cm-mw-section-header sinais de igual ==
Modelos
exemplo {{cite book|title=foo bar}}
.cm-mw-template outro conteúdo de modelo foo bar
.cm-mw-template-name nome do modelo cite book
.cm-mw-template-argument-name parâmetros de modelo title=
.cm-mw-template-delimiter barra vertical |
.cm-mw-template-bracket parêntesis de abertura/fecho {{ }}
.cm-mw-template-ground
.cm-mw-template2-ground
.cm-mw-template3-ground
modelo completo
(the number is the level of nesting)
{{foo|{{cite book|title=foo bar}}}}
Variáveis
exemplo {{{foo|bar}}}
.cm-mw-templatevariable variável bar
.cm-mw-templatevariable-name triple-braced variable name foo
.cm-mw-templatevariable-bracket parêntesis de abertura/fecho {{{ }}}
.cm-mw-templatevariable-delimiter barra vertical |
Funções do analisador
exemplo {{#assessment: A | High }}
.cm-mw-parserfunction Parâmetros da função do analisador High
.cm-mw-parserfunction-name nome da função do analisador PAGENAME #invoke
.cm-mw-parserfunction-bracket parêntesis de abertura/fecho {{ }}
.cm-mw-parserfunction-delimiter delimitador :
Etiquetas de extensão
Note: Extension may use their own styles and rules for highlighting text within the extension tag.
exemplo <poem style="padding: 1em;">string
whole line
string</poem>
.cm-mw-exttag texto dentro das etiquetas string
.cm-mw-exttag-name,
.cm-mw-ext-poem[3]
nome da etiqueta poem
.cm-mw-exttag-bracket parêntesis de abertura/fecho < >
.cm-mw-tag-ref conteúdo de referência <ref>{{cite web|url=https://example.org}}</ref>
.cm-mw-exttag-attribute
.cm-mw-exttag-attribute-value
atributos de referência style="padding: 1em;"
Etiquetas HTML
exemplo <span style="foo">foo bar</span>
.cm-mw-htmltag-name Etiqueta HTML span
.cm-mw-htmltag-bracket parêntesis de abertura/fecho < >
.cm-mw-htmltag-attribute
.cm-mw-htmltag-attribute-value
parâmetros e valores style="foo"
superscript
subscript
foo<sup>bar</sup>
foo<sub>bar</sub>
Pre-formatted text
.cm-mw-tag-pre pre-formatted text <pre>foo bar</pre>
.cm-mw-tag-nowiki nowiki text <nowiki>foo bar</nowiki>
Internal links
exemplo [[foo bar]] [[foo#section|bar]]
.cm-mw-link-pagename internal link target foo bar
.cm-mw-link caráter # #section
.cm-mw-link-tosection carateres depois de # #section
.cm-mw-link-bracket parêntesis de abertura/fecho [[ ]]
.cm-mw-link-text etiqueta da hiperligação (sem formatação adicional)
.cm-mw-link-delimiter barra vertical |
.cm-mw-pagename destinos de hiperligação interna foo bar
Hiperligações externas
exemplo https://www.example.org
[https://www.example.org]
[https://www.example.org example.org]
.cm-mw-extlink,
.cm-mw-free-extlink
destinos de hiperligação externa www.example.org
.cm-mw-extlink-protocol,
.cm-mw-free-extlink-protocol
protocolo https://
.cm-mw-extlink-text etiqueta da hiperligação (sem formatação adicional)
.cm-mw-extlink-bracket parêntesis de abertura/fecho [ ]
Tabelas
exemplo {|class="wikitable"
|-
! Header text !! Header text
|-
| Example || Example
|}
.cm-mw-table-bracket parêntesis de abertura/fecho e barra vertical {| |}
.cm-mw-table-delimiter separadores de linhas e colunas | |- !
.cm-mw-table-definition
.cm-mw-table-definition-value
classes e estilos de tabela class="wikitable"
.cm-mw-table-caption caption text |+ caption
Outro
.cm-mw-double-underscore palavras mágicas __TOC__
.cm-mw-list semicolon (definition lists) ;Foo:Bar
.cm-special-char-nbsp non-breaking space · ·
.cm-specialChar control characters

Notes

  1. Your personal CSS is at Special:MyPage/common.css. You can also make your changes take effect globally if GlobalCssJs is installed. On Wikimedia wikis, your global CSS is at meta:Special:MyPage/global.css.
  2. 2.0 2.1 The size is not changed in the 2017 wikitext editor.
  3. Onde "poem" é o nome da etiqueta.