highlight.hpp

来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· HPP 代码 · 共 60 行

HPP
60 行
字号
// -*- Mode : c++ -*-//// SUMMARY  :      // USAGE    :        // ORG      : // AUTHOR   : Antoine Le Hyaric -// E-MAIL   : lehyaric@ann.jussieu.fr///*  This file is part of Freefem++  Freefem++ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.  Freefem++  is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.  You should have received a copy of the GNU Lesser General Public License along with Freefem++; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */// Color-coding for FreeFem++-cs editor window// Antoine Le Hyaric - LJLL Paris  - lehyaric@ann.jussieu.fr// $Id: highlight.hpp,v 1.6 2006-09-29 20:30:15 hecht Exp $#ifndef HIGHLIGHT_HPP#define HIGHLIGHT_HPP#include <string>#include <vector>using namespace std;void inithighlightparser();int my_parse();// Final result: a string containing highlight codesextern string highlight;// Highlight codesconst char highlight_plain='A';const char highlight_comment='B';const char highlight_macro='C';const char highlight_string='D';const char highlight_parameter='E';const char highlight_type='F';const char highlight_keyword='G';const char highlight_global='H';const char highlight_error='I';// Read from a string rather than from a fileextern string lexinput;#endif // HIGHLIGHT_HPP

⌨️ 快捷键说明

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