برجسته‌سازی نحو

برجسته‌سازی نحو (به انگلیسی: Syntax highlighting) یک ویژگی ویراستارهای متن است که با بکارگیری آن هر بخش از متن , به خصوص در مورد کدهای منبع, بر اساس طبقه‌بندی آن با رنگ و فونتی متفاوت نمایش داده می‌شود.[1]

مثال

تعبیر استاندارد نوشتار رنگی
/* Hello World */
#include <stdlib.h>
#include <stdio.h>

int main()
{
    printf("Hello World\n");
    return 0;
}
/* Hello World */
#include <stdlib.h>
#include <stdio.h>

int main()
{
    printf("Hello World\n");
    return 0;
}

منابع

  1. See e.g., The Java Developer's Guide to Eclipse By Jim D'Anjou, Sherry Shavor, Scott Fairbrother, Dan Kehn, John Kellerman, Pat McCarthy Published by Addison-Wesley, 2004 ISBN 0-321-30502-7, 1136 pages
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.