Example #1
0
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <windows.h>
#include <tchar.h>
#include "abplugin.h"
#include "absql.h"

ColorizeInfo Info;
ABColor colors[]=
{
  {ABCF_4BIT,AB_OPAQUE(0x03),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0F),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0D),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0D),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0E),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0A),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x0C),AB_OPAQUE(0x00),NULL,false,true },
  {ABCF_4BIT,AB_OPAQUE(0x01),AB_OPAQUE(0x0C),NULL,false,false}
};
const TCHAR *colornames[]={_T("Comment"),_T("Keyword"),_T("Parameter"),_T("\";\" Symbol"),_T("String"),_T("Number"),_T("Pair"),_T("Wrong Pair")};

int WINAPI SetColorizeInfo(ColorizeInfo *AInfo)
{
  if((AInfo->version<AB_VERSION)||(AInfo->api!=AB_API)) return false;
  Info=*AInfo;
  return true;
int color_by_name(char *name)
{
  for(unsigned int i=0;i<(sizeof(color_names)/sizeof(color_names[0]));i++)
    if(!_stricmp(name,color_names[i])) return AB_OPAQUE(i);
  return -1;
}
Example #3
0
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <windows.h>
#include <tchar.h>
#include "abplugin.h"
#include "abawk.h"

ColorizeInfo Info;
ABColor colors[]= {
    {ABCF_4BIT,AB_OPAQUE(0x03),AB_OPAQUE(0x00),NULL,false,true },              // HC_COMMENT
    {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true },              // HC_KEYWORD1
    {ABCF_4BIT,AB_OPAQUE(0x0a),AB_OPAQUE(0x00),NULL,false,true },              // HC_KEYWORD2
    {ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0x00),NULL,false,true },              // HC_STRING
    {ABCF_4BIT,AB_OPAQUE(0x02),AB_OPAQUE(0x00),NULL,false,true },              // HC_REGEXPS
    {ABCF_4BIT,AB_OPAQUE(0x06),AB_OPAQUE(0x00),NULL,false,true },              // HC_REGEXP
    {ABCF_4BIT,AB_OPAQUE(0x0a),AB_OPAQUE(0x00),NULL,false,true },              // HC_NUMBER
    {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true },              // HC_BUILTIN
    {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true },              // HC_IO
    {ABCF_4BIT,AB_OPAQUE(0x0a),AB_OPAQUE(0x00),NULL,false,true },              // HC_PARAM
    {ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0x00),NULL,false,true },              // HC_HIGHLITE
    {ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0x00),NULL,false,true },              // HC_SYMBOL
    {ABCF_4BIT,AB_OPAQUE(0x0d),AB_OPAQUE(0x00),NULL,false,true },              // HC_PATTERNS
    {ABCF_4BIT,AB_OPAQUE(0x01),AB_OPAQUE(0x0c),NULL,false,false}               // HC_HL_ERROR
};
const TCHAR* colornames[]= {_T("Comment"),_T("Keyword"),_T("Keyword2"),_T("String"),_T("Regexp '/'"),_T("Regexp body"),_T("Number"),_T("Builtin"),_T("IO"),_T("Param"),_T("Pair"),_T("Symbol"),_T("Patterns"),_T("Wrong Pair")};
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <windows.h>
#include <tchar.h>
#include "abplugin.h"
#include "abarmgnuasm.h"

ColorizeInfo Info;
ABColor colors[]=
{
  {ABCF_4BIT,AB_OPAQUE(0x03),AB_OPAQUE(0x00),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0x00),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0a),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0a),AB_OPAQUE(0x00),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x02),AB_OPAQUE(0x00),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x00),AB_OPAQUE(0x0a),NULL,false,false},
  {ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x01),AB_OPAQUE(0x0c),NULL,false,false},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0d),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x05),AB_OPAQUE(0),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0c),AB_OPAQUE(0),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0f),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x08),AB_OPAQUE(0),NULL,false,true},
  {ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0x00),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x0e),AB_OPAQUE(0),NULL,false,true},{ABCF_4BIT,AB_OPAQUE(0x06),AB_OPAQUE(0),NULL,false,true}
};