From 8f67cfa4d675268c1508c777077c7ecd7df6ca89 Mon Sep 17 00:00:00 2001 From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Date: Thu, 20 Jun 2019 13:45:47 -0700 Subject: [PATCH] fix: converted single to triple backticks8 (#36235) --- guide/arabic/git/git-squash/index.md | 99 +++++----- guide/arabic/git/git-stash/index.md | 43 +++-- guide/arabic/git/git-status/index.md | 5 +- guide/arabic/git/gitignore/index.md | 36 ++-- guide/arabic/git/index.md | 26 +-- guide/arabic/git/tagging-in-git/index.md | 169 ++++++++++-------- guide/arabic/go/functions/index.md | 72 ++++---- guide/arabic/go/go-functions/index.md | 27 +-- guide/arabic/go/go-maps/index.md | 30 ++-- guide/arabic/go/go-structs/index.md | 91 +++++----- guide/arabic/go/hello-world/index.md | 22 ++- guide/arabic/go/index.md | 55 +++--- .../go/installing-go/arch-linux/index.md | 14 +- .../mac-package-installer/index.md | 5 +- .../go/installing-go/mac-tarball/index.md | 14 +- .../go/installing-go/ubuntu-apt-get/index.md | 14 +- .../go/installing-go/ubuntu-tarball/index.md | 30 ++-- .../installing-go/windows-installer/index.md | 5 +- guide/arabic/go/loops/index.md | 7 +- guide/arabic/go/range/index.md | 16 +- guide/arabic/go/variadic-functions/index.md | 64 +++---- guide/arabic/haskell/hello-world/index.md | 28 +-- guide/arabic/haskell/index.md | 27 +-- .../html/attributes/a-href-attribute/index.md | 64 +++---- .../attributes/autofocus-attribute/index.md | 12 +- .../body-background-attribute/index.md | 12 +- .../body-bgcolor-attribute/index.md | 20 +-- .../attributes/div-align-attribute/index.md | 52 +++--- .../attributes/font-color-attribute/index.md | 28 +-- .../attributes/font-size-attribute/index.md | 14 +- .../html/attributes/href-attribute/index.md | 10 +- guide/arabic/html/attributes/href/index.md | 44 ++--- .../attributes/img-align-attribute/index.md | 6 +- .../attributes/img-src-attribute/index.md | 20 +-- .../attributes/img-width-attribute/index.md | 22 +-- guide/arabic/html/attributes/index.md | 14 +- .../input-checked-attribute/index.md | 14 +- .../attributes/input-type-attribute/index.md | 106 +++++------ guide/arabic/html/attributes/lang/index.md | 18 +- guide/arabic/html/attributes/links/index.md | 24 +-- .../onclick-event-attribute/index.md | 32 ++-- .../attributes/p-align-attribute/index.md | 20 +-- .../attributes/placeholder-attribute/index.md | 18 +- .../arabic/html/attributes/required/index.md | 62 +++---- .../html/attributes/role-attribute/index.md | 6 +- .../attributes/script-src-attribute/index.md | 36 ++-- guide/arabic/html/css-classes/index.md | 47 ++--- .../arabic/html/doctype-declaration/index.md | 24 +-- guide/arabic/html/elements/a-tag/index.md | 18 +- guide/arabic/html/elements/abbr-tag/index.md | 6 +- .../arabic/html/elements/address-tag/index.md | 40 ++--- .../arabic/html/elements/article-tag/index.md | 16 +- guide/arabic/html/elements/audio-tag/index.md | 40 +++-- guide/arabic/html/elements/b-tag/index.md | 6 +- guide/arabic/html/elements/body-tag/index.md | 20 +-- guide/arabic/html/elements/br-tag/index.md | 24 +-- .../arabic/html/elements/button-tag/index.md | 36 ++-- guide/arabic/html/elements/code-tag/index.md | 6 +- .../arabic/html/elements/comment-tag/index.md | 24 +-- guide/arabic/html/elements/div-tag/index.md | 12 +- .../arabic/html/elements/doctype-tag/index.md | 24 +-- guide/arabic/html/elements/em-tag/index.md | 13 +- guide/arabic/html/elements/font-tag/index.md | 6 +- .../arabic/html/elements/footer-tag/index.md | 24 +-- guide/arabic/html/elements/form-tag/index.md | 24 +-- .../arabic/html/elements/header-tag/index.md | 16 +- guide/arabic/html/elements/hr-tag/index.md | 31 ++-- guide/arabic/html/elements/i-tag/index.md | 7 +- .../arabic/html/elements/iframe-tag/index.md | 18 +- guide/arabic/html/elements/img-tag/index.md | 18 +- guide/arabic/html/elements/index.md | 54 +++--- guide/arabic/html/elements/input-tag/index.md | 32 ++-- guide/arabic/html/elements/label-tag/index.md | 27 +-- guide/arabic/html/elements/li-tag/index.md | 160 ++++++++--------- guide/arabic/html/elements/ol-tag/index.md | 24 +-- 75 files changed, 1225 insertions(+), 1125 deletions(-) diff --git a/guide/arabic/git/git-squash/index.md b/guide/arabic/git/git-squash/index.md index 12aeb45a46..4eba08b34a 100644 --- a/guide/arabic/git/git-squash/index.md +++ b/guide/arabic/git/git-squash/index.md @@ -10,69 +10,74 @@ localeTitle: جيت سكواش لذلك لنفترض أنك قمت باتباع سجل الإلتزام في الفرع الذي تريد دمجه كجزء من طلب السحب: - `$ git log --pretty=oneline --abbrev-commit - 30374054 Add Jupyter Notebook stub to Data Science Tools - 8490f5fc Minor formatting and Punctuation changes - 3233cb21 Prototype for Notebook page -` +```shell +$ git log --pretty=oneline --abbrev-commit +30374054 Add Jupyter Notebook stub to Data Science Tools +8490f5fc Minor formatting and Punctuation changes +3233cb21 Prototype for Notebook page +``` من الواضح أننا نفضل أن يكون هناك التزام واحد هنا ، حيث أنه لا فائدة من معرفة ما بدأناه في الكتابة وما هي الأخطاء التي حددناها في وقت لاحق ، فإن النتيجة النهائية هي فقط ذات أهمية. إذن ما نفعله هو بدء جلسة rebase تفاعلية من **HEAD** الحالي (ارتكبت **30374054** ) لارتكاب **3233cb21** ، مع نية الجمع بين **3** آخر التزام في واحد: - `$ git rebase -i HEAD~3 -` +```shell +$ git rebase -i HEAD~3 +``` سيؤدي ذلك إلى فتح محرر يحتوي على ما يلي: - `pick 3233cb21 Prototype for Notebook page - pick 8490f5fc Minor formatting and Punctuation changes - pick 30374054 Add Jupyter Notebook to Data Science Tools - # Rebase - # - # Commands: - # p, pick = use commit - # r, reword = use commit, but edit the commit message - # e, edit = use commit, but stop for amending - # s, squash = use commit, but meld into previous commit - # f, fixup = like "squash", but discard this commit's log message - # x, exec = run command (the rest of the line) using shell - # - # These lines can be re-ordered; they are executed from top to bottom. - # - # If you remove a line here THAT COMMIT WILL BE LOST. - # - # However, if you remove everything, the rebase will be aborted. - # - # Note that empty commits are commented out -` +```shell +pick 3233cb21 Prototype for Notebook page +pick 8490f5fc Minor formatting and Punctuation changes +pick 30374054 Add Jupyter Notebook to Data Science Tools +# Rebase +# +# Commands: +# p, pick = use commit +# r, reword = use commit, but edit the commit message +# e, edit = use commit, but stop for amending +# s, squash = use commit, but meld into previous commit +# f, fixup = like "squash", but discard this commit's log message +# x, exec = run command (the rest of the line) using shell +# +# These lines can be re-ordered; they are executed from top to bottom. +# +# If you remove a line here THAT COMMIT WILL BE LOST. +# +# However, if you remove everything, the rebase will be aborted. +# +# Note that empty commits are commented out +``` كما هو الحال دائمًا ، تقدم لنا Git رسالة مساعدة لطيفة للغاية حيث يمكنك رؤية خيار `squash` هذا الذي نبحث عنه. حاليا تعليمات لrebase التفاعلية وتقول ل `pick` كل المحدد ارتكاب **والحفاظ** على المقابلة ارتكاب الرسالة. هذا هو - لا تغير أي شيء. لكننا نريد أن يكون لدينا التزام واحد فقط في النهاية. ببساطة قم بتحرير النص في محرر يمكنك استبدال `pick` مع `squash` (أو فقط `s` ) بجانب كل التزام نرغب في التخلص منه وحفظ / الخروج من المحرر. قد يبدو هذا كما يلي: - `s 3233cb21 Prototype for Notebook page - s 8490f5fc Minor formatting and Punctuation changes - pick 30374054 Add Jupyter Notebook to Data Science Tools -` +```shell +s 3233cb21 Prototype for Notebook page +s 8490f5fc Minor formatting and Punctuation changes +pick 30374054 Add Jupyter Notebook to Data Science Tools +``` عند إغلاق المحرر بحفظ هذه التغييرات ، سيتم إعادة فتحه على الفور ، مما يشير إلى اختيار رسائل الالتزام وإعادة صياغتها. شيء مثل - `# This is a combination of 3 commits. - # The first commit's message is: - Prototype for Notebook page - - # This is the 2nd commit message: - - Minor formatting and Punctuation changes - - # This is the 3rd commit message: - - Add Jupyter Notebook to Data Science Tools - - # Please enter the commit message for your changes. Lines starting - # with '#' will be ignored, and an empty message aborts the commit. -` +```shell +# This is a combination of 3 commits. +# The first commit's message is: +Prototype for Notebook page + +# This is the 2nd commit message: + +Minor formatting and Punctuation changes + +# This is the 3rd commit message: + +Add Jupyter Notebook to Data Science Tools + +# Please enter the commit message for your changes. Lines starting +# with '#' will be ignored, and an empty message aborts the commit. +``` في هذه المرحلة ، يمكنك حذف جميع الرسائل التي لا تريد تضمينها في نسخة الالتزام النهائية ، أو إعادة كتابتها أو مجرد كتابة رسالة التزام من نقطة الصفر. فقط تذكر أن الإصدار الجديد سيشتمل على جميع الأسطر التي لا تبدأ بحرف `#` . مرة أخرى ، قم بحفظ محررك والخروج منه. diff --git a/guide/arabic/git/git-stash/index.md b/guide/arabic/git/git-stash/index.md index c534b20e68..8dbca9e347 100644 --- a/guide/arabic/git/git-stash/index.md +++ b/guide/arabic/git/git-stash/index.md @@ -12,8 +12,9 @@ localeTitle: جيت ستاش لحفظ تغييراتك في المخبأ ، شغّل الأمر: - `git stash save "optional message for yourself" -` +```shell +git stash save "optional message for yourself" +``` هذا يحفظ التغييرات الخاصة بك ويعيد دليل العمل إلى ما بدا لأحدث الالتزام. تتوفر التغييرات المحززة من أي فرع في هذا المستودع. @@ -23,24 +24,26 @@ localeTitle: جيت ستاش لمعرفة ما يوجد في خبأتك ، شغّل الأمر: - `git stash list -` +```shell +git stash list +``` يؤدي هذا إلى إرجاع قائمة من اللقطات المحفوظة الخاصة بك بتنسيق الصيغة `stash@{0}: BRANCH-STASHED-CHANGES-ARE-FOR: MESSAGE` . الجزء `stash@{0}` هو اسم المخبأ ، والرقم الموجود في الأقواس المتعرجة ( `{ }` ) هو فهرس ذلك المخبأ. إذا كانت لديك مجموعات تغيير متعددة مخزنة ، فسيكون لكل مجموعة فهرس مختلف. إذا نسيت التغييرات التي تم إجراؤها في المخبأ ، فيمكنك الاطلاع على ملخص لها باستخدام `git stash show NAME-OF-STASH` . إذا كنت ترغب في رؤية تخطيط تصحيح نمط diff النموذجية (مع + و s الخاص بالتغييرات سطر - بواسطة - خط) ، يمكنك تضمين الخيار `-p` (من أجل التصحيح). إليك مثال على ذلك: - `git stash show -p stash@{0} - - # Example result: - diff --git a/PathToFile/fileA b/PathToFile/fileA - index 2417dd9..b2c9092 100644 - --- a/PathToFile/fileA - +++ b/PathToFile/fileA - @@ -1,4 +1,4 @@ - -What this line looks like on branch - +What this line looks like with stashed changes -` +```shell +git stash show -p stash@{0} + +# Example result: +diff --git a/PathToFile/fileA b/PathToFile/fileA +index 2417dd9..b2c9092 100644 +--- a/PathToFile/fileA ++++ b/PathToFile/fileA +@@ -1,4 +1,4 @@ +-What this line looks like on branch ++What this line looks like with stashed changes +``` ### استرداد التغييرات الثابتة @@ -55,13 +58,15 @@ localeTitle: جيت ستاش إذا كنت تريد إزالة التغييرات المظللة دون تطبيقها ، فقم بتشغيل الأمر: - `git stash drop STASH-NAME -` +```shell +git stash drop STASH-NAME +``` لمسح المخبأ بالكامل ، قم بتشغيل الأمر: - `git stash clear -` +```shell +git stash clear +``` ### معلومات اكثر: diff --git a/guide/arabic/git/git-status/index.md b/guide/arabic/git/git-status/index.md index 47ff01e9f3..d2bfeb25c3 100644 --- a/guide/arabic/git/git-status/index.md +++ b/guide/arabic/git/git-status/index.md @@ -10,7 +10,8 @@ localeTitle: حالة Git ### استعمال - `git status -` +```shell +git status +``` قائمة الملفات التي يتم تنظيمها بدون ترتيب أو عدم تعقب. \ No newline at end of file diff --git a/guide/arabic/git/gitignore/index.md b/guide/arabic/git/gitignore/index.md index 4e5469d168..042e5a774f 100644 --- a/guide/arabic/git/gitignore/index.md +++ b/guide/arabic/git/gitignore/index.md @@ -18,26 +18,28 @@ localeTitle: .gitignore هذا مثال لما قد يبدو عليه ملف `.gitignore` : - `# Ignore Mac system files - .DS_store - - # Ignore node_modules folder - node_modules - - # Ignore all text files - *.txt - - # Ignore files related to API keys - .env - - # Ignore SASS config files - .sass-cache -` +``` +# Ignore Mac system files +.DS_store + +# Ignore node_modules folder +node_modules + +# Ignore all text files +*.txt + +# Ignore files related to API keys +.env + +# Ignore SASS config files +.sass-cache +``` لإضافة أو تغيير ملف .gitignore العام ، قم بتشغيل الأمر التالي: - `git config --global core.excludesfile ~/.gitignore_global -` +```bash +git config --global core.excludesfile ~/.gitignore_global +``` سيؤدي ذلك إلى إنشاء الملف `~/.gitignore_global` . الآن يمكنك تحرير هذا الملف بنفس طريقة ملف `.gitignore` المحلي. ستتجاهل جميع مستودعات Git الملفات والمجلدات المدرجة في ملف `.gitignore` . diff --git a/guide/arabic/git/index.md b/guide/arabic/git/index.md index 54d5904024..5dad447cae 100644 --- a/guide/arabic/git/index.md +++ b/guide/arabic/git/index.md @@ -62,23 +62,26 @@ Git هو نظام تحكم في إصدار الموزعة مفتوح المصد يتضمن Git اسم المستخدم والبريد الإلكتروني كجزء من المعلومات الموجودة في الالتزام. ستحتاج إلى إعداد هذا ضمن ملف التهيئة على مستوى المستخدم باستخدام هذه الأوامر: - `git config --global user.name "My Name" - git config --global user.email "myemail@example.com" -` +```shell +git config --global user.name "My Name" +git config --global user.email "myemail@example.com" +``` #### تغيير محرر النص الخاص بك يستخدم Git تلقائيًا محرر النصوص الافتراضي ، ولكن يمكنك تغيير ذلك. في ما يلي مثال لاستخدام محرر Atom بدلاً منه (الخيار `--wait` يخبر shell بانتظار محرر النص حتى تتمكن من القيام `--wait` فيه قبل أن ينتقل البرنامج): - `git config --global core.editor "atom --wait" -` +```shell +git config --global core.editor "atom --wait" +``` #### إضافة اللون إلى إخراج Git يمكنك تكوين shell الخاص بك لإضافة اللون إلى إخراج Git باستخدام هذا الأمر: - `git config --global color.ui true -` +```shell +git config --global color.ui true +``` للاطلاع على جميع إعدادات التهيئة ، استخدم الأمر `git config --list` . @@ -92,10 +95,11 @@ Git هو نظام تحكم في إصدار الموزعة مفتوح المصد إذا نسيت كيف يعمل أي أمر في Git ، فيمكنك الوصول إلى مساعدة Git من سطر الأوامر بعدة طرق: - `git help COMMAND - git COMMAND --help - man git-COMMAND -` +```shell +git help COMMAND +git COMMAND --help +man git-COMMAND +``` هذا يعرض الصفحة اليدوية للأمر في إطار shell الخاص بك. للتنقل ، انتقل باستخدام مفاتيح الأسهم لأعلى ولأسفل أو استخدم اختصارات لوحة المفاتيح التالية: diff --git a/guide/arabic/git/tagging-in-git/index.md b/guide/arabic/git/tagging-in-git/index.md index 1c3473a26f..ae3ffd89b5 100644 --- a/guide/arabic/git/tagging-in-git/index.md +++ b/guide/arabic/git/tagging-in-git/index.md @@ -6,33 +6,38 @@ localeTitle: وضع العلامات في جيت لعرض جميع العلامات المنشأة بترتيب أبجدي: - `git tag -` +```bash +git tag +``` للحصول على مزيد من المعلومات حول علامة: - `git show v1.4 -` +```bash +git show v1.4 +``` هناك نوعان من العلامات: 1. المشروح - `git tag -a v1.2 -m "my version 1.4" -` +```bash +git tag -a v1.2 -m "my version 1.4" +``` 2. وزن خفيف - `git tag v1.2 -` +```bash +git tag v1.2 +``` تختلف في الطريقة التي يتم تخزينها. هذه خلق علامات على التزامك الحالي. إذا كنت تريد وضع علامة على التزام سابق ، فحدد رقم تعريف الالتزام الذي ترغب في وضع علامة عليه: - `git tag -a v1.2 9fceb02 -` +```bash +git tag -a v1.2 9fceb02 +``` يمكن استخدام أسماء العلامات بدلًا من استخدام المعرفات أثناء السحب والدفع بالالتزامات إلى repo بعيد. @@ -43,20 +48,22 @@ localeTitle: وضع العلامات في جيت يمكنك إدراج جميع العلامات المتاحة في مشروع باستخدام الأمر `git tag` (nate that they will appear بالترتيب الأبجدي): - `$ git tag - v1.0 - v2.0 - v3.0 -` +``` +$ git tag +v1.0 +v2.0 +v3.0 +``` تعد هذه الطريقة من علامات الإدراج رائعة للمشروعات الصغيرة ، ولكن يمكن أن تتضمن المشروعات الأكبر مئات العلامات ، لذلك قد تحتاج إلى ترشيحها عند البحث عن نقطة مهمة في التاريخ. يمكنك العثور على العلامات التي تحتوي على أحرف محددة تضيف - `-l` إلى أمر `git tag` : - `$ git tag -l "v2.0*" - v2.0.1 - v2.0.2 - v2.0.3 - v2.0.4 -` +``` +$ git tag -l "v2.0*" +v2.0.1 +v2.0.2 +v2.0.3 +v2.0.4 +``` ## قم بإنشاء علامة @@ -66,13 +73,14 @@ localeTitle: وضع العلامات في جيت لإنشاء علامة مشفرة ، قم بإضافة علامة `-a tagname -m "tag message"` إلى أمر `git tag` : - `$ git tag -a v4.0 -m "release version 4.0" - $ git tag - v1.0 - v2.0 - v3.0 - v4.0 -` +``` +$ git tag -a v4.0 -m "release version 4.0" +$ git tag +v1.0 +v2.0 +v3.0 +v4.0 +``` كما ترى ، يحدد `-a` أنك تقوم بإنشاء علامة توضيحية ، بعد أن يأتي اسم العلامة وأخيراً ، `-m` متبوعة برسالة العلامة للتخزين في قاعدة البيانات Git. @@ -80,14 +88,15 @@ localeTitle: وضع العلامات في جيت علامات خفيفة الوزن تحتوي فقط على المجموع الاختباري المرتبط (لا يتم تخزين أي معلومات أخرى). لإنشاء واحدة ، ما عليك سوى تشغيل الأمر `git tag` بدون أي خيارات أخرى (يتم استخدام الأحرف -lw في نهاية الاسم للإشارة إلى علامات خفيفة ، ولكن يمكنك تمييزها كما تريد): - `$ git tag v4.1-lw - $ git tag - v1.0 - v2.0 - v3.0 - v4.0 - v4.1-lw -` +``` +$ git tag v4.1-lw +$ git tag +v1.0 +v2.0 +v3.0 +v4.0 +v4.1-lw +``` في هذه المرة لم تحدد رسالة أو بيانات أخرى ذات صلة ، لذلك تحتوي العلامة على المجموع الاختباري للالتزام المرتبط فقط. @@ -95,29 +104,31 @@ localeTitle: وضع العلامات في جيت يمكنك تشغيل أمر `git show` لعرض البيانات المخزنة في علامة. في حالة العلامات التوضيحية ، سترى بيانات العلامة وبيانات الالتزام: - `$ git show v4.0 - tag v4.0 - Tagger: John Cash - Date: Mon Sat 28 15:00:25 2017 -0700 - - release version 4.0 - - commit da43a5fss745av88d47839247990022a98419093 - Author: John Cash - Date: Fri Feb 20 20:30:05 2015 -0700 - - finished details -` +``` +$ git show v4.0 +tag v4.0 +Tagger: John Cash +Date: Mon Sat 28 15:00:25 2017 -0700 + +release version 4.0 + +commit da43a5fss745av88d47839247990022a98419093 +Author: John Cash +Date: Fri Feb 20 20:30:05 2015 -0700 + + finished details +``` إذا كانت العلامة التي تشاهدها علامة خفيفة ، فسترى بيانات الالتزام المحالة فقط: - `$ git show v1.4-lw - commit da43a5f7389adcb9201ab0a289c389ed022a910b - Author: John Cash - Date: Fri Feb 20 20:30:05 2015 -0700 - - finished details -` +``` +$ git show v1.4-lw +commit da43a5f7389adcb9201ab0a289c389ed022a910b +Author: John Cash +Date: Fri Feb 20 20:30:05 2015 -0700 + + finished details +``` ## وضع علامات على الالتزام القديم @@ -125,29 +136,32 @@ localeTitle: وضع العلامات في جيت أولاً ، قم بتشغيل git log للتعرف على المجموع الاختباري للالتزام المطلوب: - `$ git log --pretty=oneline - ac2998acf289102dba00823821bee04276aad9ca added products section - d09034bdea0097726fd8383c0393faa0072829a7 refactorization - a029ac120245ab012bed1ca771349eb9cca01c0b modified styles - da43a5f7389adcb9201ab0a289c389ed022a910b finished details - 0adb03ca013901c1e02174924486a08cea9293a2 small fix in search textarea styles -` +``` +$ git log --pretty=oneline +ac2998acf289102dba00823821bee04276aad9ca added products section +d09034bdea0097726fd8383c0393faa0072829a7 refactorization +a029ac120245ab012bed1ca771349eb9cca01c0b modified styles +da43a5f7389adcb9201ab0a289c389ed022a910b finished details +0adb03ca013901c1e02174924486a08cea9293a2 small fix in search textarea styles +``` عندما يكون لديك المجموع الاختباري المطلوب ، أضفه في نهاية سطر إنشاء العلامة: - `$ git tag -a v3.5 a029ac -` +``` +$ git tag -a v3.5 a029ac +``` سترى علامة تم إضافة `git tag` بشكل صحيح: - `$ git tag - v1.0 - v2.0 - v3.0 - v3.5 - v4.0 - v4.1-lw -` +``` +$ git tag +v1.0 +v2.0 +v3.0 +v3.5 +v4.0 +v4.1-lw +``` ## دفع علامات @@ -180,10 +194,11 @@ $ git checkout v0.0.3 ملاحظة: التحقق من "v0.0.3". أنت في حالة "فصل الرأس". يمكنك أن تنظر حولك وتجعلها تجريبية التغييرات والالتزام بها ، ويمكنك تجاهل أي تعهدات تجريها في هذا الشأن دون التأثير على أي فروع عن طريق إجراء عملية دفع أخرى. - `## Deleting a Tag - - You may find a situation were you want to delete a certain tag. There's a very useful command for this situations: -` +``` +## Deleting a Tag + +You may find a situation were you want to delete a certain tag. There's a very useful command for this situations: +``` علامة git $ - حذف v0.0.2 علامة git $ v0.0.1 v0.0.3 v0.0.4 \`\` \` diff --git a/guide/arabic/go/functions/index.md b/guide/arabic/go/functions/index.md index e3d5e83df0..a14a22025b 100644 --- a/guide/arabic/go/functions/index.md +++ b/guide/arabic/go/functions/index.md @@ -6,10 +6,11 @@ localeTitle: الذهاب وظائف تأخذ الدالة صفرًا أو أكثر من أي معلمة من أي نوع ، وتقوم ببعض المنطق معها وقد ترجع واحدة أو أكثر من القيم. بناء جملة الدالة Golang هو: - `func sum(parameter1 int64, parameter2 int64) int64 { - return parameter1+parameter2 - } -` +```go +func sum(parameter1 int64, parameter2 int64) int64 { + return parameter1+parameter2 +} +``` هنا ، اسم الوظيفة هو `add` . فإنه يأخذ إلى المعلمات ، `parameter1` و `parameter2` من النوع `int64` وإرجاع int64 آخر ، مجموع المعلمتين. @@ -17,19 +18,21 @@ localeTitle: الذهاب وظائف بعد `return` التوصل، مخارج وظيفة دون تنفيذ المزيد من التعليمات البرمجية. - `func sum(parameter1 int64, parameter2 int64) int64 { - return parameter1+parameter2 - // Unreachable code - fmt.Printf("Don't print me") - } -` +```go +func sum(parameter1 int64, parameter2 int64) int64 { + return parameter1+parameter2 + // Unreachable code + fmt.Printf("Don't print me") +} +``` ### استدعاء وظيفة سيتم تسمية الوظيفة المذكورة أعلاه على النحو التالي: - `sum(4, 5) -` +```go +sum(4, 5) +``` قيمة هذا التعبير هي 9. @@ -37,10 +40,11 @@ localeTitle: الذهاب وظائف إذا كانت معلمتان متتاليتان أو أكثر من نفس النوع ، فيمكن ذكرها مرة واحدة فقط. - `function foo(x, y, z int64, name string) { - fmt.Printf("%d %d %d %s", x, y, z, name) - } -` +```go +function foo(x, y, z int64, name string) { + fmt.Printf("%d %d %d %s", x, y, z, name) +} +``` هنا `x` و `y` و `z` اكتب `int64` ، `name` عبارة عن سلسلة. @@ -48,31 +52,35 @@ localeTitle: الذهاب وظائف يمكن أن تقوم الدالة بإرجاع قيم الصفر أو أكثر. لإرجاع أي شيء ، احذف نوع الإرجاع: - `function helloWorld() { - fmt.Printf("Hello world!") - } -` +```go +function helloWorld() { + fmt.Printf("Hello world!") +} +``` لإرجاع قيمة واحدة حدد نوعه: - `function getHelloWorld() string { - return "Hello world!" - } -` +```go +function getHelloWorld() string { + return "Hello world!" +} +``` لإرجاع أكثر من قيمة ، حدد أنواعها ، ملفوفة في `()` ومفصولة بفواصل: - `function getHelloWorldAndBestLanguage() (string, string) { - return "Hello world!", "Golang" - } -` +```go +function getHelloWorldAndBestLanguage() (string, string) { + return "Hello world!", "Golang" +} +``` لتلقي هذه القيم ، قم ببساطة بتعريف المتغيرات المفصولة بفواصل مثل: - `helloWorld, bestLanguage := getHelloWorldAndBestLanguage() - // helloWorld == "Hello world!" - // bestLanguage == "Golang" -` +```go +helloWorld, bestLanguage := getHelloWorldAndBestLanguage() +// helloWorld == "Hello world!" +// bestLanguage == "Golang" +``` ### عوائد عارية diff --git a/guide/arabic/go/go-functions/index.md b/guide/arabic/go/go-functions/index.md index e178b6617b..d9ed796442 100644 --- a/guide/arabic/go/go-functions/index.md +++ b/guide/arabic/go/go-functions/index.md @@ -8,24 +8,27 @@ localeTitle: الذهاب وظائف يبدأ تعريف الدالة بالكلمة الأساسية `func` متبوعة باسم الدالة ثم وسيطات الدالة وأخيراً أنواع القيم التي تم إرجاعها. يربط التصريح اسم الدالة بالوظيفة. ضع في اعتبارك أن النوع يأتي بعد اسم المتغير في كل من الوسيطات والقيم التي تم إرجاعها. مثال لإعلان الدالة هو ما يلي - `func add(a int, b int) int -` +```go +func add(a int, b int) int +``` يمكن أن تحتوي الدالة على 0 أو العديد من الوسائط استنادًا إلى وظيفتها المطلوبة - `func zero() int { /* Function Definition */ } - func increment(x int) int { /* Function Definition */ } - func add(x, y int) int { /* Function Definition */ } -` +```go +func zero() int { /* Function Definition */ } +func increment(x int) int { /* Function Definition */ } +func add(x, y int) int { /* Function Definition */ } +``` يدعم Go إرجاع قيم متعددة. تقوم الدالة التالية بإرجاع قيمتين: مجموع الوسيطتين ، والفرق بين الوسيط الأول والثاني - `func addAndSubtract(x, y int) (int, int) { - return x + y, x - y - } - - addAndSubtract(7, 4) // Returns 11, 3 -` +```go +func addAndSubtract(x, y int) (int, int) { + return x + y, x - y +} + +addAndSubtract(7, 4) // Returns 11, 3 +``` Go يعتمد أيضًا تسمية القيم التي تم إرجاعها diff --git a/guide/arabic/go/go-maps/index.md b/guide/arabic/go/go-maps/index.md index 5ae24561ee..da69987a91 100644 --- a/guide/arabic/go/go-maps/index.md +++ b/guide/arabic/go/go-maps/index.md @@ -6,13 +6,15 @@ localeTitle: الذهاب خرائط خريطة تسمى " _قاموس"_ بلغات أخرى ، ومفاتيح "خرائط" للقيم. يتم الإعلان عن خريطة مثل هذا: - `var m map[Key]Value -` +```go +var m map[Key]Value +``` لا تحتوي هذه الخريطة على مفاتيح ولا يمكن إضافة مفاتيح إليها. لإنشاء خريطة ، استخدم وظيفة `make` : - `m = make(map[Key]Value) -` +```go +m = make(map[Key]Value) +``` يمكن استخدام أي شيء كمفتاح أو كقيمة. @@ -24,29 +26,33 @@ localeTitle: الذهاب خرائط إنشاء أو تغيير عنصر `foo` في الخريطة `m` : - `m["foo"] = bar -` +```go +m["foo"] = bar +``` #### الحصول على العناصر احصل على عنصر مع مفتاح `foo` في الخريطة `m` : - `element = m["foo"] -` +```go +element = m["foo"] +``` #### حذف العناصر حذف عنصر مع مفتاح `foo` في الخريطة `m` : - `delete(m, "foo") -` +```go +delete(m, "foo") +``` #### تحقق مما إذا كان المفتاح قد تم استخدامه تحقق من استخدام مفتاح `foo` في الخريطة `m` : - `element, ok = m["foo"] -` +```go +element, ok = m["foo"] +``` إذا كان `ok` `true` ، فقد تم استخدام المفتاح ويحمل `element` القيمة عند `m["foo"]` . إذا كان `ok` `false` ، فهذا يعني أن المفتاح لم يتم استخدامه وأن `element` يحتفظ بقيمه الصفرية. diff --git a/guide/arabic/go/go-structs/index.md b/guide/arabic/go/go-structs/index.md index f05f13f5e8..a05bf30a06 100644 --- a/guide/arabic/go/go-structs/index.md +++ b/guide/arabic/go/go-structs/index.md @@ -6,13 +6,14 @@ localeTitle: الذهاب الهياكل في الذهاب ، يتم استخدام البنى لتخزين البيانات والوظائف ذات الصلة. قد يكون أحد الأمثلة بنية لتمثيل مستخدم: - `type User struct { - FirstName string - LastName string - Email string - Age int - } -` +```go +type User struct { + FirstName string + LastName string + Email string + Age int +} +``` هنا يمكننا تخزين الاسم الأول للمستخدم واسم العائلة وعنوان البريد الإلكتروني والعمر. يتبع اسم الخاصية نوع البيانات التي نريد تخزينها. على سبيل المثال ، الخاصية `FirstName` هي `string` بينما تكون الخاصية `Age` `int` . @@ -20,27 +21,29 @@ localeTitle: الذهاب الهياكل لتهيئة كائن جديد ، يمكننا استخدام صيغة Go المختصرة لإنشاء وتعيين المتغيرات. يمكننا إما تمرير البيانات في هذه المرحلة أو تعيين البيانات في وقت لاحق: - `func main() { - // Create a user and set both the first and last name properties - user1 := User{ - FirstName: "John", - LastName: "Wick", - } - - // Now we have our user object, we can set the data like this - user1.Email = "john@wick.com" - user1.Age = 30 - } -` +```go +func main() { + // Create a user and set both the first and last name properties + user1 := User{ + FirstName: "John", + LastName: "Wick", + } + + // Now we have our user object, we can set the data like this + user1.Email = "john@wick.com" + user1.Age = 30 +} +``` ### طرق الكائن Go تمكن من تخصيص طرق للبنى. يتيح ذلك تجميع العمليات ذات الصلة بالبيانات التي تؤثر عليها. في هذا المثال ، سنكتب طريقة في بنية `User` لإنشاء الاسم الكامل للمستخدم: - `func (u User) FullName() string { - return strings.Join([]string{u.FirstName, u.LastName}, " ") - } -` +```go +func (u User) FullName() string { + return strings.Join([]string{u.FirstName, u.LastName}, " ") +} +``` ستنضم هذه الطريقة إلى الاسم الأول والأخير للمستخدم مع وجود مسافة بينهما. قد يبدو استدعاء الطريقة كما يلي: @@ -63,16 +66,17 @@ Go تمكن من تخصيص طرق للبنى. يتيح ذلك تجميع الع يمكن أن تحتوي الهياكل على كل من المصدرين (العام) والخصائص غير المُصدرة (الخاصة). يتم تعيين هذا إما عن طريق وجود حرف كبير لأول حرف للتصدير أو الحرف الأول صغير لم يتم تصديره. في هذا المثال ، سنجعل خاصية البريد الإلكتروني خاصة: - `type User struct { - // Exported Data - FirstName string - LastName string - Age int - - // Unexported Data - email string - } -` +```go +type User struct { + // Exported Data + FirstName string + LastName string + Age int + + // Unexported Data + email string +} +``` سيجعل هذا الإجراء التعليمة البرمجية التالية بطرح خطأ في وقت الإنشاء أثناء محاولة التفاعل مع خاصية unexported: @@ -81,16 +85,17 @@ Go تمكن من تخصيص طرق للبنى. يتيح ذلك تجميع الع هذا ينطبق أيضًا على الطرق: - `// Exported method. This can be called from anywhere - func (u User) Email() { - return u.email - } - - // Unexported method. This can only be called by other methods on this struct - func (u User) updateLoginCount { - // code to update login count... - } -` +```go +// Exported method. This can be called from anywhere +func (u User) Email() { + return u.email +} + +// Unexported method. This can only be called by other methods on this struct +func (u User) updateLoginCount { + // code to update login count... +} +``` ### تعديل الخصائص عبر الطرق diff --git a/guide/arabic/go/hello-world/index.md b/guide/arabic/go/hello-world/index.md index 0bbe4b71a2..3349fe3f5b 100644 --- a/guide/arabic/go/hello-world/index.md +++ b/guide/arabic/go/hello-world/index.md @@ -29,30 +29,34 @@ localeTitle: مرحبا العالم في الذهاب ### إعلان الحزمة - `package main -` +```go +package main +``` أثناء التنقل ، يرتبط كل برنامج بـ "حزمة" أو مجموعة من البرامج المرتبطة. الاستثناء الملحوظ هو الحزمة الخاصة "الرئيسية" ، والتي تشير إلى الذهاب complier أنه ينبغي تشغيل البرنامج التالي. ### واردات - `import “fmt” -` +``` +import “fmt” +``` إذا كنت ترغب في استخدام وظائف من حزم أخرى ، فإنك تحتاج إلى استيرادها. هناك حزم معينة تم تطويرها بواسطة مشرفي الصيانة (تسمى "المكتبة القياسية") ويمكن العثور عليها على https://golang.org/pkg/. في هذه الحالة ، نحتاج إلى حزمة "fmt" لبياننا المطبوع (أدناه). ### إعلان الدالة - `func main() { - } -` +```go +func main() { +} +``` وظائف هي قلب أي برنامج في الذهاب. يمكن أن يكون لديهم حجج وقيم عودة ، لكن الوظيفة `main` لا تقوم بأي من هذه. يعمل بمثابة "نقطة دخول" ، أو حيث يبدو يبدو أولاً لتشغيل البرنامج. نريد أن يقوم برنامج Hello World الخاص بنا بالطباعة ، لذا نريد وضع الشفرة هنا. ### بيان مطبوع - `fmt.Println("Hello, world!") -` +```go +fmt.Println("Hello, world!") +``` لا يتطلب Go فواصل منقوطة في نهاية الأسطر ، حيث يضيفها complier تلقائياً. تعمل حزمة `fmt` (التي قمنا باستيرادها أعلاه!) على وظيفة `Println` ، والتي نستخدمها باستخدام `.` بناء الجملة. نمر الحجج إلى الوظيفة بين Parens. في هذه الحالة ، تكون الوسيطة هي السلسلة التي نريد طباعتها ( `"Hello, world!"` ). لاحظ أن السلسلة نفسها محاطة بعلامات اقتباس. diff --git a/guide/arabic/go/index.md b/guide/arabic/go/index.md index 794d345204..c80c7923ea 100644 --- a/guide/arabic/go/index.md +++ b/guide/arabic/go/index.md @@ -16,9 +16,10 @@ localeTitle: اذهب #### تثبيت Golang مع البيرة: - `$ brew update - $ brew install golang -` +```bash +$ brew update +$ brew install golang +``` #### عند التثبيت ، حاول تشغيل إصدار go لمشاهدة الإصدار المثبت من Go. @@ -30,8 +31,9 @@ localeTitle: اذهب سنقوم بإضافة بعض متغيرات البيئة إلى تهيئة shell. واحد من الملفات الموجودة في bash\_profile دليل المنزل الخاص بك ، bashrc أو. zshrc (للوه يا جيش Zsh) - `$ vi .bashrc -` +```bash +$ vi .bashrc +``` \` @@ -39,21 +41,23 @@ localeTitle: اذهب #### هذا هو في الواقع ملف .bashrc الخاص بك - `export GOPATH=$HOME/go-workspace # don't forget to change your path correctly! - export GOROOT=/usr/local/opt/go/libexec - export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOROOT/bin -` +```bash +export GOPATH=$HOME/go-workspace # don't forget to change your path correctly! +export GOROOT=/usr/local/opt/go/libexec +export PATH=$PATH:$GOPATH/bin +export PATH=$PATH:$GOROOT/bin +``` ## \#### إنشاء مساحة العمل الخاصة بك: ##### قم بإنشاء شجرة أدلة مساحة العمل: - `$ mkdir -p $GOPATH $GOPATH/src $GOPATH/pkg $GOPATH/bin - $GOPATH/src : Where your Go projects / programs are located - $GOPATH/pkg : contains every package objects - $GOPATH/bin : The compiled binaries home -` +```bash +$ mkdir -p $GOPATH $GOPATH/src $GOPATH/pkg $GOPATH/bin +$GOPATH/src : Where your Go projects / programs are located +$GOPATH/pkg : contains every package objects +$GOPATH/bin : The compiled binaries home +``` ### بداية سريعة @@ -61,21 +65,24 @@ localeTitle: اذهب 1. مستودع استنساخ سبائك - `git clone https://github.com/olliecoleman/alloy - cd alloy -` +``` +git clone https://github.com/olliecoleman/alloy +cd alloy +``` 2. تثبيت التبعيات - `glide install - npm install -` +``` +glide install +npm install +``` 3. ابدأ خادم التطوير - `go install - alloy dev -` +``` +go install +alloy dev +``` 4. زيارة الموقع على `http://localhost:1212` diff --git a/guide/arabic/go/installing-go/arch-linux/index.md b/guide/arabic/go/installing-go/arch-linux/index.md index d46b9bdb31..f66d2e27f8 100644 --- a/guide/arabic/go/installing-go/arch-linux/index.md +++ b/guide/arabic/go/installing-go/arch-linux/index.md @@ -6,16 +6,18 @@ localeTitle: تثبيت Go في Arch Linux باستخدام pacman استخدام Arc Linux Linux Manager (pacman) هو أسهل طريقة لتثبيت Go. استنادًا إلى فلسفة Arch Linux في تقديم إصدارات برامج جديدة بسرعة ، ستحصل على إصدار حالي جدًا من الانتقال. قبل أن تتمكن من تثبيت حزمة الانتقال ، يجب عليك تحديث النظام. - `$ sudo pacman -Syu - $ sudo pacman -S go -` +```sh +$ sudo pacman -Syu +$ sudo pacman -S go +``` #### تحقق من التثبيت وإصدار من الذهاب للتحقق مما إذا تم تشغيل go بنجاح ، استخدم: - `$ go version - > go version go2.11.1 linux/amd64 -` +```sh +$ go version +> go version go2.11.1 linux/amd64 +``` سيطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/installing-go/mac-package-installer/index.md b/guide/arabic/go/installing-go/mac-package-installer/index.md index 046560a9a7..489274914c 100644 --- a/guide/arabic/go/installing-go/mac-package-installer/index.md +++ b/guide/arabic/go/installing-go/mac-package-installer/index.md @@ -12,7 +12,8 @@ localeTitle: تثبيت Go في نظام التشغيل Mac OS X باستخدا للتحقق مما إذا كان قد تم تركيب go بنجاح ، افتح الجهاز الخاص بك واستخدم: - `$ go version -` +```sh +$ go version +``` يجب أن يطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/installing-go/mac-tarball/index.md b/guide/arabic/go/installing-go/mac-tarball/index.md index 28054eb7fa..e5a88c2d48 100644 --- a/guide/arabic/go/installing-go/mac-tarball/index.md +++ b/guide/arabic/go/installing-go/mac-tarball/index.md @@ -16,16 +16,18 @@ localeTitle: تثبيت Go in Mac OS X باستخدام tarball ##### تثبيت Go 1.9.1 - `$ curl -O https://storage.googleapis.com/golang/go1.9.1.darwin-amd64.tar.gz - $ sudo tar -C /usr/local -xzf go1.9.1.darwin-amd64.tar.gz - $ export PATH=$PATH:/usr/local/go/bin -` +``` +$ curl -O https://storage.googleapis.com/golang/go1.9.1.darwin-amd64.tar.gz +$ sudo tar -C /usr/local -xzf go1.9.1.darwin-amd64.tar.gz +$ export PATH=$PATH:/usr/local/go/bin +``` #### تحقق من التثبيت وإصدار من الذهاب للتحقق مما إذا تم تشغيل go بنجاح ، استخدم: - `$ go version -` +```sh +$ go version +``` يجب أن يطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/installing-go/ubuntu-apt-get/index.md b/guide/arabic/go/installing-go/ubuntu-apt-get/index.md index 55f4d13398..02ee76a2a7 100644 --- a/guide/arabic/go/installing-go/ubuntu-apt-get/index.md +++ b/guide/arabic/go/installing-go/ubuntu-apt-get/index.md @@ -8,16 +8,18 @@ localeTitle: تثبيت Go في Ubuntu باستخدام apt-get > حتى كتابة هذه السطور ، فإن نسخة Ubuntu Xenial من go هي 1.6.1 ، بينما الأحدث إصدار مستقر هو 1.9.1 - `$ sudo apt-get update - $ sudo apt-get install golang-go -` +```sh +$ sudo apt-get update +$ sudo apt-get install golang-go +``` #### تحقق من التثبيت وإصدار من الذهاب للتحقق مما إذا تم تشغيل go بنجاح ، استخدم: - `$ go version - > go version go1.9.1 linux/amd64 -` +```sh +$ go version +> go version go1.9.1 linux/amd64 +``` سيطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/installing-go/ubuntu-tarball/index.md b/guide/arabic/go/installing-go/ubuntu-tarball/index.md index f92117fdc3..a21add42b5 100644 --- a/guide/arabic/go/installing-go/ubuntu-tarball/index.md +++ b/guide/arabic/go/installing-go/ubuntu-tarball/index.md @@ -10,8 +10,9 @@ localeTitle: تثبيت Go في Ubuntu باستخدام tarball قبل المتابعة تأكد من معرفة ما إذا كان النظام الخاص بك هو 32 أو 64 بت. إذا كنت لا تعرف ، فقم بتشغيل الأمر التالي لمعرفة ما يلي: - `$ lscpu | grep Architecture -` +```sh +$ lscpu | grep Architecture +``` إذا كنت ترى `Architecture: x86_64` النظام الخاص بك هو 64 بت ، وإلا إذا حصلت على `Architecture: i686` ، فإن النظام الخاص بك هو 32 بت. الآن بعد أن تعرفت على بنية النظام الخاص بك ، دعونا المضي قدما. @@ -35,24 +36,27 @@ localeTitle: تثبيت Go في Ubuntu باستخدام tarball ##### انتقل 1.9.1 لأنظمة 64 بت: - `$ wget https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz - $ sudo tar -C /usr/local -xzf go1.9.1.linux-amd64.tar.gz - $ export PATH=$PATH:/usr/local/go/bin -` +``` +$ wget https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz +$ sudo tar -C /usr/local -xzf go1.9.1.linux-amd64.tar.gz +$ export PATH=$PATH:/usr/local/go/bin +``` ##### انتقل 1.9.1 لأنظمة 32bit: - `$ wget https://storage.googleapis.com/golang/go1.9.1.linux-386.tar.gz - $ sudo tar -C /usr/local -xzf go1.9.1.linux-386.tar.gz - $ export PATH=$PATH:/usr/local/go/bin -` +``` +$ wget https://storage.googleapis.com/golang/go1.9.1.linux-386.tar.gz +$ sudo tar -C /usr/local -xzf go1.9.1.linux-386.tar.gz +$ export PATH=$PATH:/usr/local/go/bin +``` #### تحقق من التثبيت وإصدار من الذهاب للتحقق مما إذا تم تشغيل go بنجاح ، استخدم: - `$ go version - > go version go1.9.1 linux/amd64 -` +```sh +$ go version +> go version go1.9.1 linux/amd64 +``` سيطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/installing-go/windows-installer/index.md b/guide/arabic/go/installing-go/windows-installer/index.md index 056bdd54e2..1459226ff0 100644 --- a/guide/arabic/go/installing-go/windows-installer/index.md +++ b/guide/arabic/go/installing-go/windows-installer/index.md @@ -20,7 +20,8 @@ localeTitle: تثبيت Go في Windows باستخدام MSI Installer للتحقق مما إذا تم تشغيل go بنجاح ، افتح موجه الأوامر واستخدم: - `> go version -` +``` +> go version +``` يجب أن يطبع هذا إلى إصدار وحدة التحكم ، بينما يتأكد في نفس الوقت من أن عملية التثبيت سارت بسلاسة. \ No newline at end of file diff --git a/guide/arabic/go/loops/index.md b/guide/arabic/go/loops/index.md index b0431f48d6..f19be61bb6 100644 --- a/guide/arabic/go/loops/index.md +++ b/guide/arabic/go/loops/index.md @@ -45,8 +45,9 @@ localeTitle: الحلقات اذهب إلى عن على { // Whill loop حتى يفصل الشرط عن العروة كسر // الخروج من الحلقة } - `## Replacement for while-loop - To simulate while-loop of other languages, you can simply exclude the **init** and **post** statement: -` +``` +## Replacement for while-loop +To simulate while-loop of other languages, you can simply exclude the **init** and **post** statement: +``` اذهب func main () { الأسطوانات: = 1 لـ num <= 1000 { num \* = 2 } fmt.Println ("أصغر طاقة تبلغ 2 فوق 1000 هي" ، عدد) } \`\` \` \ No newline at end of file diff --git a/guide/arabic/go/range/index.md b/guide/arabic/go/range/index.md index 6a97b1050f..dde2462b1b 100644 --- a/guide/arabic/go/range/index.md +++ b/guide/arabic/go/range/index.md @@ -27,10 +27,11 @@ localeTitle: نطاق سوف الناتج: - `apple - orange - pear -` +``` +apple +orange +pear +``` ربما لاحظت مُعرِّفًا فارغًا تم استخدامه. @@ -55,6 +56,7 @@ localeTitle: نطاق المخرجات: - `a -> apple - b -> banana -` \ No newline at end of file +``` +a -> apple +b -> banana +``` \ No newline at end of file diff --git a/guide/arabic/go/variadic-functions/index.md b/guide/arabic/go/variadic-functions/index.md index 03e414bf12..735cb45594 100644 --- a/guide/arabic/go/variadic-functions/index.md +++ b/guide/arabic/go/variadic-functions/index.md @@ -12,22 +12,23 @@ localeTitle: وظائف متنوعة فيما يلي الأساسيات حول كيفية عمل الدوال varidic: - `package main - import "fmt" - - func printFruits(fruits ...string) { - for _, fruit := range fruits{ - fmt.Println(fruit) - } - } - - func main() { - printFruits("apple", "bannana") - printFruits("papaya", "coconut", "pear", "pineapple") - berries := []string{"blueberry", "strawberry", "raspberry"} - printFruits(berries...) - } -` +```go +package main +import "fmt" + +func printFruits(fruits ...string) { + for _, fruit := range fruits{ + fmt.Println(fruit) + } +} + +func main() { + printFruits("apple", "bannana") + printFruits("papaya", "coconut", "pear", "pineapple") + berries := []string{"blueberry", "strawberry", "raspberry"} + printFruits(berries...) +} +``` أولاً ، في printFruits قمنا بتعريف عدد الوسيطات باستخدام \[… string\]. @@ -35,23 +36,26 @@ localeTitle: وظائف متنوعة تظهر أول مكالمتين للطباعة printFruits أن الدالة ستقوم بطباعة كل سلسلة ، حتى إذا كنا نجتاز عددًا مختلفًا من الوسيطات. - `apple - bannana - ... - papaya - coconut - pear - ... -` +```text +apple +bannana +... +papaya +coconut +pear +... +``` هذا سوف يعمل أيضا لشرائح. لاستخدام وظيفة vardiac مع شريحة ، نضيف نقاط التدريب إلى المكالمة. - `printFruits(berries...) -` +```go +printFruits(berries...) +``` - `blueberry - strawberry - raspberry -` \ No newline at end of file +```text +blueberry +strawberry +raspberry +``` \ No newline at end of file diff --git a/guide/arabic/haskell/hello-world/index.md b/guide/arabic/haskell/hello-world/index.md index 148cda6867..fa5abc5b4b 100644 --- a/guide/arabic/haskell/hello-world/index.md +++ b/guide/arabic/haskell/hello-world/index.md @@ -4,19 +4,21 @@ localeTitle: مرحبا بالبرنامج العالمي --- ## أبسط برنامج مرحبا العالم في هاسكل - `main :: IO () - main = do - putStrLn "Hello World" -` +```haskell +main :: IO () +main = do + putStrLn "Hello World" +``` ## مرحبا العالم باستخدام تكوين الدالة - `hello :: String - hello = "Hello World" - - printer :: String -> IO () - printer = putStrLn . show - - main :: IO () - main = printer hello -` \ No newline at end of file +```haskell +hello :: String +hello = "Hello World" + +printer :: String -> IO () +printer = putStrLn . show + +main :: IO () +main = printer hello +``` \ No newline at end of file diff --git a/guide/arabic/haskell/index.md b/guide/arabic/haskell/index.md index 5be3c68dba..a5566b5357 100644 --- a/guide/arabic/haskell/index.md +++ b/guide/arabic/haskell/index.md @@ -18,28 +18,31 @@ localeTitle: هاسكل للبدء فعليًا في استخدام Haskell فأنت بحاجة إلى GHC (The Glasgow Haskell Compiler) ، وذلك لإعداد: [إعداد المكدس](https://docs.haskellstack.org/en/stable/README/#how-to-install://docs.haskellstack.org/en/stable/README/#quick-start-guide) - `stack new my-project - cd my-project - stack setup - stack build - stack exec my-project-exe -` +```shell +stack new my-project +cd my-project +stack setup +stack build +stack exec my-project-exe +``` كلمة الحذر ، حاول عدم استخدام تثبيت مكدس على الرغم من أنه سيتم تثبيت الحزمة على مستوى العالم ، إلا أنه لا يوصى بهذا لأن إصدارات مختلفة من الحزم متوافقة مع الإصدارات المختلفة من GHC. وبالتالي ، فإن استخدام النسخة المحلية من الحزمة باستخدام بنية المكدس هو أفضل طريقة للمتابعة. ## مرحبا بالعالم - `main :: IO () - main = print "Hello Haskell :)" -` +```haskell +main :: IO () +main = print "Hello Haskell :)" +``` احفظ فوق الرمز في ملف يسمى "hello.hs" واحفظه. لتجميع مثال Hello World ، سيؤدي هذا إلى تحويل شفرة haskell الخاصة بنا إلى رموز بايت مفهومة. - `stack ghc hello.hs - ./hello -` +```shell +stack ghc hello.hs +./hello +``` ## كابل بيانات diff --git a/guide/arabic/html/attributes/a-href-attribute/index.md b/guide/arabic/html/attributes/a-href-attribute/index.md index 79e79e06c2..55bb6116da 100644 --- a/guide/arabic/html/attributes/a-href-attribute/index.md +++ b/guide/arabic/html/attributes/a-href-attribute/index.md @@ -8,20 +8,20 @@ localeTitle: سمة Href على سبيل المثال: - ` - - - Href Attribute Example - - -

Href Attribute Example

-

- The freeCodeCamp Contribution Page shows you how and where you can contribute to freeCodeCamp's community and growth. -

- - - -` +```html + + + Href Attribute Example + + +

Href Attribute Example

+

+ The freeCodeCamp Contribution Page shows you how and where you can contribute to freeCodeCamp's community and growth. +

+ + + +``` يتم دعم سمة `` بواسطة جميع المتصفحات. @@ -31,25 +31,25 @@ localeTitle: سمة Href ### أمثلة - ` -This is a dead link - This is a live link to freeCodeCamp - more with a href attribute -` +```html +This is a dead link +This is a live link to freeCodeCamp +more with a href attribute +``` ### المراسي في الصفحة من الممكن أيضًا تعيين مرساة لمكان معين من الصفحة. لإجراء ذلك ، يجب عليك أولاً وضع علامة تبويب في الموقع على الصفحة التي تحتوي على العلامة والسمة "الاسم" الضرورية مع أي وصف للكلمة الرئيسية ، مثل: - ` - -` +```html + +``` أي وصف بين العلامات غير مطلوب. بعد ذلك يمكنك وضع رابط يؤدي إلى هذا الارتساء في أي مكان في نفس الصفحة. للقيام بذلك ، يجب عليك استخدام العلامة ذات السمة الضرورية "href" مع الرمز # (حاد) ووصف الكلمة الرئيسية للربط ، مثل هذا: - ` -Go to Top -` +```html +Go to Top +``` ### روابط الصور @@ -57,9 +57,9 @@ localeTitle: سمة Href ### مثال - ` -picture -` +```html +picture +``` ### مثال @@ -67,7 +67,7 @@ localeTitle: سمة Href ### بعض الأمثلة أكثر من href - ` -This gives a base url for all further urls on the page - This is a live link to an external stylesheet -` \ No newline at end of file +```html +This gives a base url for all further urls on the page +This is a live link to an external stylesheet +``` \ No newline at end of file diff --git a/guide/arabic/html/attributes/autofocus-attribute/index.md b/guide/arabic/html/attributes/autofocus-attribute/index.md index 267ca41c53..7a04ec630c 100644 --- a/guide/arabic/html/attributes/autofocus-attribute/index.md +++ b/guide/arabic/html/attributes/autofocus-attribute/index.md @@ -16,12 +16,12 @@ localeTitle: خاصية التركيز التلقائي ### مثال - ` -
- - -
-` +```html +
+ + +
+``` ### التوافق diff --git a/guide/arabic/html/attributes/body-background-attribute/index.md b/guide/arabic/html/attributes/body-background-attribute/index.md index 8dc2192228..210c0be195 100644 --- a/guide/arabic/html/attributes/body-background-attribute/index.md +++ b/guide/arabic/html/attributes/body-background-attribute/index.md @@ -16,12 +16,12 @@ localeTitle: سمة خلفية الجسم مثال: - ` - - - - -` +```html + + + + +``` ## يتم استهلاك سمة body-background diff --git a/guide/arabic/html/attributes/body-bgcolor-attribute/index.md b/guide/arabic/html/attributes/body-bgcolor-attribute/index.md index 0b346efb3e..b534c70f80 100644 --- a/guide/arabic/html/attributes/body-bgcolor-attribute/index.md +++ b/guide/arabic/html/attributes/body-bgcolor-attribute/index.md @@ -14,16 +14,16 @@ localeTitle: الهيئة Bgcolor السمة **فمثلا:** - ` - - - Body bgcolor Attribute example - - -

This webpage has colored background.

- - -` +```html + + + Body bgcolor Attribute example + + +

This webpage has colored background.

+ + +``` يمكنك تغيير اللون عن طريق استبدال ###### بقيمة سداسية عشرية. للألوان البسيطة ، يمكنك أيضًا استخدام الكلمة ، مثل "أحمر" أو "أسود". diff --git a/guide/arabic/html/attributes/div-align-attribute/index.md b/guide/arabic/html/attributes/div-align-attribute/index.md index d85009e67e..0c8d07df1c 100644 --- a/guide/arabic/html/attributes/div-align-attribute/index.md +++ b/guide/arabic/html/attributes/div-align-attribute/index.md @@ -8,27 +8,27 @@ localeTitle: Div Align Attribute على سبيل المثال: - ` - - - Div Align Attribbute - - -
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. -
- - -` +```html + + + Div Align Attribbute + + +
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +
+ + +``` ## مهم! @@ -36,10 +36,10 @@ localeTitle: Div Align Attribute السمة DIV محاذاة يمكن استخدامها لأفقيا محاذاة محتويات داخل شعبة. في المثال أدناه، سيتم توسيط النص داخل شعبة. - ` -
- This Text Will Be Centered -
-` +```html +
+ This Text Will Be Centered +
+``` \*\* لا يتم اعتماد هذه السمة في HTML5 و [النص CSS محاذاة](https://github.com/freeCodeCamp/guides/blob/f50b7370be514b2a03ee707cd0f0febe2bb713ae/src/pages/css/text-align/index.md) ينبغي أن تستخدم بدلا من ذلك \ No newline at end of file diff --git a/guide/arabic/html/attributes/font-color-attribute/index.md b/guide/arabic/html/attributes/font-color-attribute/index.md index a3ec686a99..33d8d1fef4 100644 --- a/guide/arabic/html/attributes/font-color-attribute/index.md +++ b/guide/arabic/html/attributes/font-color-attribute/index.md @@ -32,20 +32,20 @@ localeTitle: سمة لون الخط 2. سمة سداسي عشري - ` - - - Font color example using color attribute - - -` +```html + + + Font color example using color attribute + + +``` 3. سمة RGB - ` - - - Font color example using color attribute - - -` \ No newline at end of file +```html + + + Font color example using color attribute + + +``` \ No newline at end of file diff --git a/guide/arabic/html/attributes/font-size-attribute/index.md b/guide/arabic/html/attributes/font-size-attribute/index.md index 8d4d27580f..b03bcf4490 100644 --- a/guide/arabic/html/attributes/font-size-attribute/index.md +++ b/guide/arabic/html/attributes/font-size-attribute/index.md @@ -12,12 +12,12 @@ localeTitle: حجم الخط سمة مثال: - ` - - - This is some text! - - -` +```html + + + This is some text! + + +``` ملاحظة: `The size attribute of is not supported in HTML5. Use CSS instead.` \ No newline at end of file diff --git a/guide/arabic/html/attributes/href-attribute/index.md b/guide/arabic/html/attributes/href-attribute/index.md index a3d2a595e8..3f02f91780 100644 --- a/guide/arabic/html/attributes/href-attribute/index.md +++ b/guide/arabic/html/attributes/href-attribute/index.md @@ -12,11 +12,11 @@ Href اختصار لـ "Hypertext Reference" وهي إحدى سمات HTML. يت #### أمثلة - ` -This is an absolute URL - - This is a relative URL -` +```html +This is an absolute URL + +This is a relative URL +``` #### معلومات اكثر: diff --git a/guide/arabic/html/attributes/href/index.md b/guide/arabic/html/attributes/href/index.md index b48e4c9f41..8c7773ee6d 100644 --- a/guide/arabic/html/attributes/href/index.md +++ b/guide/arabic/html/attributes/href/index.md @@ -22,31 +22,31 @@ localeTitle: أ href \-> شعار Google الذي يشير إلى صفحة Google الرئيسية - ` - - Google -` +```html + +Google +``` العلامات التي تستخدم HREF: - ` - - - - - - - - - - - - - - -` +```html +

Change my color

+ + +``` باستخدام سمة raw onclick الأولية لجافا سكريبت: - ` - -` +```html + +``` #### معلومات اكثر: diff --git a/guide/arabic/html/attributes/p-align-attribute/index.md b/guide/arabic/html/attributes/p-align-attribute/index.md index 2eddc86ef7..2bcd730895 100644 --- a/guide/arabic/html/attributes/p-align-attribute/index.md +++ b/guide/arabic/html/attributes/p-align-attribute/index.md @@ -12,9 +12,9 @@ localeTitle: P محاذاة السمة ### بناء الجملة - ` -

Lorem Ipsum...

-` +```html +

Lorem Ipsum...

+``` ### سمات @@ -25,13 +25,13 @@ localeTitle: P محاذاة السمة ### مثال - ` - - -

Paragraph align attribute example

- - -` +```html + + +

Paragraph align attribute example

+ + +``` #### معلومات اكثر: diff --git a/guide/arabic/html/attributes/placeholder-attribute/index.md b/guide/arabic/html/attributes/placeholder-attribute/index.md index 391a2b6946..5f9244b545 100644 --- a/guide/arabic/html/attributes/placeholder-attribute/index.md +++ b/guide/arabic/html/attributes/placeholder-attribute/index.md @@ -14,18 +14,18 @@ localeTitle: العنصر النائب السمة مثال المدخلات - ` -
- - -
-` +```html +
+ + +
+``` مثال على Textarea - ` - -` +```html + +``` ### التوافق diff --git a/guide/arabic/html/attributes/required/index.md b/guide/arabic/html/attributes/required/index.md index 004d04fcc1..97c9853da2 100644 --- a/guide/arabic/html/attributes/required/index.md +++ b/guide/arabic/html/attributes/required/index.md @@ -8,43 +8,43 @@ localeTitle: مطلوب فمثلا: - ` - - - - HTML Required Attribute - - -
- Text Field: - -
- - -` +```html + + + + HTML Required Attribute + + +
+ Text Field: + +
+ + +``` اختر مثال: - ` -
- -
-` +```html +
+ +
+``` مثال على منطقة النص: - ` -
- - -
-` +```html +
+ + +
+``` ببساطة إضافة `required` إلى عنصر إدخال diff --git a/guide/arabic/html/attributes/role-attribute/index.md b/guide/arabic/html/attributes/role-attribute/index.md index d3ca6f0b73..b337765a3a 100644 --- a/guide/arabic/html/attributes/role-attribute/index.md +++ b/guide/arabic/html/attributes/role-attribute/index.md @@ -8,9 +8,9 @@ localeTitle: سمة الدور مثال على الاستخدام: - ` -
Button Link -` +```html +Button Link +``` سيقرأ قراء الشاشة هذا العنصر على أنه "زر" بدلاً من "رابط". diff --git a/guide/arabic/html/attributes/script-src-attribute/index.md b/guide/arabic/html/attributes/script-src-attribute/index.md index 4b1e452ef1..9310a58fc3 100644 --- a/guide/arabic/html/attributes/script-src-attribute/index.md +++ b/guide/arabic/html/attributes/script-src-attribute/index.md @@ -8,24 +8,24 @@ localeTitle: السمة سيناريو Src على سبيل المثال ، إذا كان لديك ملف جافا سكريبت مخصص لك باسم "script.js" وأردت إضافة وظائفه إلى صفحة HTML ، فيمكنك إضافته كما يلي: - ` - - - - Script Src Attribute Example - - - - - - -` +```html + + + + Script Src Attribute Example + + + + + + +``` يشير ذلك إلى ملف يسمى "script.js" موجود في نفس الدليل كملف .html. يمكنك أيضًا الارتباط بأدلة أخرى باستخدام ".." في مسار الملف. - ` - -` +```html + +``` يقفز هذا مستوى دليل واحد ثم إلى دليل "عام" ثم إلى دليل "js" ثم إلى ملف "script.js". @@ -33,9 +33,9 @@ localeTitle: السمة سيناريو Src هذا المثال يرتبط بملف jQuery. - ` - -` +```html + +``` #### معلومات اكثر: diff --git a/guide/arabic/html/css-classes/index.md b/guide/arabic/html/css-classes/index.md index 1a313f6243..64cb7f7d5d 100644 --- a/guide/arabic/html/css-classes/index.md +++ b/guide/arabic/html/css-classes/index.md @@ -8,18 +8,19 @@ localeTitle: فئات CSS عند كتابة HTML ، يمكنك إضافة فئات إلى عنصر. ما عليك سوى إضافة `class="myclass"` السمات `class="myclass"` إلى العنصر. يمكن أن تحتوي العناصر المتعددة على نفس الفئة ، ويمكن لعنصر واحد أن يحتوي على فئات متعددة. يمكنك تعيين فئات متعددة لعنصر عن طريق إضافة كل أسماء الفئات المطلوبة المفصولة بمسافة إلى سمة `class` في HTML. - ` -

"Here I come to save the day!"

-

is a popular catchphrase that Super Man often said.

-` +```html +

"Here I come to save the day!"

+

is a popular catchphrase that Super Man often said.

+``` يمكنك بعد ذلك تصميم هذه العناصر باستخدام CSS. تتم الإشارة إلى الفئات بالنقطة (.) قبلها في CSS ، ولكن لا يجب وضع الفترات في HTML الخاص بك. - `.super-man { - color: red; - background-color: blue; - } -` +```css +.super-man { + color: red; + background-color: blue; +} +``` يعطي هذا الرمز خلفية زرقاء ولون نص أحمر لكافة العناصر التي تحتوي على فئة `super-man` . [شاهد هذا المثال على CodePen](https://codepen.io/Tlandis/pen/RLvomV) . @@ -33,24 +34,26 @@ localeTitle: فئات CSS ثم في ملف css الخاص بك: - `.ironMan{ - color:red; - } - - .alfred{ - background-color: black; - } -` +```css +.ironMan{ +color:red; +} + +.alfred{ +background-color: black; +} +``` **ملاحظة:** أسماء الصفوف عادةً ما تكون جميع الأحرف الصغيرة ، مع كل كلمة في اسم فئة متعدد الكلمات مفصولة بواصلات (على سبيل المثال "super-man"). يمكنك أيضًا الجمع بين الصفوف في نفس السطر: - `.superMan .spiderMan { - color: red; - background-color: blue; - } -` +```css +.superMan .spiderMan { +color: red; +background-color: blue; +} +``` يمكنك رؤية نتيجة الكود أعلاه [هنا](https://codepen.io/Tlandis/pen/RLvomV) . تعرف على كيفية الجمع بين دروس css باستخدام المحددات [هنا](https://www.w3schools.com/css/css_combinators.asp) . diff --git a/guide/arabic/html/doctype-declaration/index.md b/guide/arabic/html/doctype-declaration/index.md index 6516ba860a..7b61848452 100644 --- a/guide/arabic/html/doctype-declaration/index.md +++ b/guide/arabic/html/doctype-declaration/index.md @@ -20,27 +20,27 @@ localeTitle: Doctype Declaration بناء جملة Doctype لـ HTML5 وما بعدها: - ` - -` +```html + +``` بناء جملة Doctype لـ HTML 4.01 صارم: - ` - -` +```html + +``` Doctype syntax for Transitional HTML 4.01: - ` - -` +```html + +``` بناء جملة Doctype لـ frameset HTML 4.01: - ` - -` +```html + +``` ## التاريخ diff --git a/guide/arabic/html/elements/a-tag/index.md b/guide/arabic/html/elements/a-tag/index.md index a3ecbc88f0..e68f4bc88b 100644 --- a/guide/arabic/html/elements/a-tag/index.md +++ b/guide/arabic/html/elements/a-tag/index.md @@ -12,17 +12,17 @@ localeTitle: يوم #### مثال: - ` - freeCodeCamp -` +```html + freeCodeCamp +``` يمكن أيضًا تحويل الصورة إلى ارتباط بإحاطة العلامة `` في علامة `` . #### مثال: - ` - -` +```html + +``` من الممكن أيضًا تحديد هدف العلامة `` . يتم ذلك باستخدام السمة `target` . تحتوي السمة `target` على القيم التالية متاحة `_blank|_self|_parent|_top|framename` . @@ -30,9 +30,9 @@ localeTitle: يوم #### مثال: - ` - freeCodeCamp -` +```html + freeCodeCamp +``` [freeCodeCamp](https://guide.freecodecamp.org/) يتم إنشاء هذا الارتباط بالطريقة نفسها التي يقترحها مثال التعليمة البرمجية. انقر فوقه لمعرفة كيف يعمل. diff --git a/guide/arabic/html/elements/abbr-tag/index.md b/guide/arabic/html/elements/abbr-tag/index.md index 9b5905ff8d..3f6085731a 100644 --- a/guide/arabic/html/elements/abbr-tag/index.md +++ b/guide/arabic/html/elements/abbr-tag/index.md @@ -8,9 +8,9 @@ localeTitle: اببر تاج استخدام المثال: - ` -FCC -` +```html +FCC +``` #### معلومات اكثر: diff --git a/guide/arabic/html/elements/address-tag/index.md b/guide/arabic/html/elements/address-tag/index.md index 9b6561079e..4f7a22492c 100644 --- a/guide/arabic/html/elements/address-tag/index.md +++ b/guide/arabic/html/elements/address-tag/index.md @@ -12,23 +12,23 @@ localeTitle: عنوان العنوان #### استعمال - ` -
-
- - - We'll never share your email with anyone else. -
-
- - -
-
- -
- -
-` \ No newline at end of file +```html +
+
+ + + We'll never share your email with anyone else. +
+
+ + +
+
+ +
+ +
+``` \ No newline at end of file diff --git a/guide/arabic/html/elements/article-tag/index.md b/guide/arabic/html/elements/article-tag/index.md index af43e5f745..f6b8e42707 100644 --- a/guide/arabic/html/elements/article-tag/index.md +++ b/guide/arabic/html/elements/article-tag/index.md @@ -12,14 +12,14 @@ localeTitle: المادة العلامة في ما يلي مثال لكيفية استخدام علامة المقالة في صفحة الويب: - ` -
-

FreeCodeCamp

-

- Learn to code with a community of programmers and contribute to open source projects. -

-
-` +```html +
+

FreeCodeCamp

+

+ Learn to code with a community of programmers and contribute to open source projects. +

+
+``` #### معلومات اكثر: diff --git a/guide/arabic/html/elements/audio-tag/index.md b/guide/arabic/html/elements/audio-tag/index.md index f71456f1ce..1ef3705bf0 100644 --- a/guide/arabic/html/elements/audio-tag/index.md +++ b/guide/arabic/html/elements/audio-tag/index.md @@ -10,35 +10,39 @@ localeTitle: علامة الصوت ##### إضافة OGG - ` -` +``` + +``` ##### إضافة MP3 - ` -` +``` + +``` ##### إضافة WAV - ` -` +``` + +``` قد يحتوي على واحد أو أكثر من مصادر الصوت ، ممثلة باستخدام السمة src أو عنصر المصدر. ##### إضافة ملفات صوت متعددة - ` -` +``` + +``` #### دعم المستعرض لأنواع مختلفة من filetypes كما يلي diff --git a/guide/arabic/html/elements/b-tag/index.md b/guide/arabic/html/elements/b-tag/index.md index 575c91d7f6..2f0e79b7e1 100644 --- a/guide/arabic/html/elements/b-tag/index.md +++ b/guide/arabic/html/elements/b-tag/index.md @@ -8,9 +8,9 @@ localeTitle: ب اليوم ### مثال: - ` -This text is bold -` +```html +This text is bold +``` سيظهر هذا على النحو التالي: diff --git a/guide/arabic/html/elements/body-tag/index.md b/guide/arabic/html/elements/body-tag/index.md index 0b866a2917..42148140d2 100644 --- a/guide/arabic/html/elements/body-tag/index.md +++ b/guide/arabic/html/elements/body-tag/index.md @@ -8,16 +8,16 @@ localeTitle: يوم الجسد يجب أن يحتوي عنصر `` على كل محتوى الصفحة ، بما في ذلك جميع عناصر العرض. يمكن أن يحتوي عنصر `` أيضًا على علامات `