1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 15:22:23 +01:00
Files
archived-doc-tr/reference/misc/functions/highlight-string.xml
2024-09-05 17:21:38 +03:00

160 lines
4.0 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 443d81b33e6537a000cc235c2a11748ba8d56232 Maintainer: nilgun Status: ready -->
<refentry xml:id="function.highlight-string" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>highlight_string</refname>
<refpurpose>Bir dizgedeki söz dizimini vurgular</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_string</methodname>
<methodparam><type>string</type><parameter>dizge</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>döndür</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<simpara>
PHP'nin yerleşik sözdizimi vurgulayıcısında tanımlanmış renkler
kullanılarak belirtilen PHP koduna sözdizimi vurgulaması yapılıp sonuç ya
html dilinde döndürülür ya da basılır.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>dizge</parameter></term>
<listitem>
<para>
Vurgulanacak PHP kodunu içeren dizge. Bir açılış etiketi içermek
zorundadır.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>döndür</parameter></term>
<listitem>
<para>
Vurgulanmış dizgeyi çıktılamak yerine döndürmesini isterseniz bu
bağımsız değişkenle işleve &true; aktarın.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<parameter>döndür</parameter> bağımsız değişkeni &true; ise, elde edilen dizge
basılmaz, sadece döndürülür. Aksi takdirde, işlem başarılı olmuşsa &true;
yoksa &false; döner.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
Sonuçlanan HTML değişti.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>highlight_string</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
highlight_string('<?php phpinfo(); ?>');
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
<code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php phpinfo</span>
<span style="color: #007700">(); </span>
<span style="color: #0000BB">?&gt;</span>
</span>
</code>
]]>
</screen>
&example.outputs.83;
<screen>
<![CDATA[
<pre><code style="color: #000000">
<span style="color: #0000BB">&lt;?php phpinfo</span>
<span style="color: #007700">(); </span>
<span style="color: #0000BB">?&gt;</span>
</code></pre>
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.uses-ob;
<para>
HTML çıktı üretimi değişikliğe uğrayabilir.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>highlight_file</function></member>
<member><link linkend="ini.syntax-highlighting">INI yönergelerinin
renklendirilmesi</link></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->