⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 highlight.h

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 H
字号:
/* $Id: highlight.h,v 1.10.2.1 2003/11/03 16:31:02 edg Exp $ */#ifndef NEDIT_HIGHLIGHT_H_INCLUDED#define NEDIT_HIGHLIGHT_H_INCLUDED#include "nedit.h"#include <X11/Intrinsic.h>/* Pattern flags for modifying pattern matching behavior */#define PARSE_SUBPATS_FROM_START 1#define DEFER_PARSING 2#define COLOR_ONLY 4/* Don't use plain 'A' or 'B' for style indices, it causes problems    with EBCDIC coding (possibly negative offsets when subtracting 'A'). */#define ASCII_A ((char)65)/* Pattern specification structure */typedef struct {    char *name;    char *startRE;    char *endRE;    char *errorRE;    char *style;    char *subPatternOf;    int flags;} highlightPattern;/* Header for a set of patterns */typedef struct {    char *languageMode;    int lineContext;    int charContext;    int nPatterns;    highlightPattern *patterns;} patternSet;void SyntaxHighlightModifyCB(int pos, int nInserted, int nDeleted,    	int nRestyled, char *deletedText, void *cbArg);void StartHighlighting(WindowInfo *window, int warn);void StopHighlighting(WindowInfo *window);void AttachHighlightToWidget(Widget widget, WindowInfo *window);void FreeHighlightingData(WindowInfo *window);void RemoveWidgetHighlight(Widget widget);void UpdateHighlightStyles(WindowInfo *window);int TestHighlightPatterns(patternSet *patSet);Pixel AllocColor(Widget w, const char *colorName, int *r, int *g, int *b);void* GetHighlightInfo(WindowInfo *window, int pos);highlightPattern *FindPatternOfWindow(WindowInfo *window, char *name);int HighlightCodeOfPos(WindowInfo *window, int pos);int HighlightLengthOfCodeFromPos(WindowInfo *window, int pos, int *checkCode);int StyleLengthOfCodeFromPos(WindowInfo *window, int pos, const char **checkStyleName);char *HighlightNameOfCode(WindowInfo *window, int hCode);char *HighlightStyleOfCode(WindowInfo *window, int hCode);char *HighlightColorOfCode(WindowInfo *window, int hCode);char *HighlightBackgroundColorOfCode(WindowInfo *window, int hCode);Pixel HighlightColorValueOfCode(WindowInfo *window, int hCode,      int *r, int *g, int *b);Pixel GetHighlightBGColorOfCode(WindowInfo *window, int hCode,      int *r, int *g, int *b);int HighlightCodeIsBold(WindowInfo *window, int hCode);int HighlightCodeIsItalic(WindowInfo *window, int hCode);#endif /* NEDIT_HIGHLIGHT_H_INCLUDED */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -