stk/STklos/Tk/Composite/Schemetext.stklos

55 lines
1.6 KiB
Plaintext
Raw Normal View History

1998-09-30 07:11:02 -04:00
;;;;
;;;; S c h e m e - t e x t . s t k l o s -- A mini font-lock package
;;;;
1999-09-05 07:16:41 -04:00
;;;; Copyright <20> 1997-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
1998-09-30 07:11:02 -04:00
;;;;
1999-09-05 07:16:41 -04:00
;;;; Permission to use, copy, modify, distribute,and license this
;;;; software and its documentation for any purpose is hereby granted,
;;;; provided that existing copyright notices are retained in all
;;;; copies and that this notice is included verbatim in any
;;;; distributions. No written agreement, license, or royalty fee is
;;;; required for any of the authorized uses.
;;;; This software is provided ``AS IS'' without express or implied
;;;; warranty.
1998-09-30 07:11:02 -04:00
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 16-Jan-1997 12:10
1999-09-05 07:16:41 -04:00
;;;; Last file update: 3-Sep-1999 20:14 (eg)
1998-09-30 07:11:02 -04:00
(require "Tk-classes")
1999-02-02 06:13:40 -05:00
(require "font-lock")
1998-09-30 07:11:02 -04:00
(select-module STklos+Tk)
1999-02-02 06:13:40 -05:00
;;;;
;;;; Resources
;;;;
1998-09-30 07:11:02 -04:00
1999-02-02 06:13:40 -05:00
(option 'add "*SchemeText*Text*Background" "white" "widgetDefault")
1998-09-30 07:11:02 -04:00
;=============================================================================
;
; < S c h e m e - T e x t >
;
;=============================================================================
1999-02-02 06:13:40 -05:00
(option 'add "*SchemeText*Text*Background" "white" "widgetDefault")
1998-09-30 07:11:02 -04:00
(define-class <Scheme-Text> (<Scroll-Text>)
1999-02-02 06:13:40 -05:00
((class :init-keyword :class
:init-form "SchemeText")))
1998-09-30 07:11:02 -04:00
(define-method initialize ((self <Scheme-text>) initargs)
(next-method)
1999-02-02 06:13:40 -05:00
(make-fontifiable (Id self))
(fontify-whole-buffer (Id self)))
1998-09-30 07:11:02 -04:00
#|
Usage:
(define t (make <Scheme-Text>
:value "(define A (make <B> :key \"aa\")); comment"))
(pack t :fill "both" :expand #t)
1999-02-02 06:13:40 -05:00
1998-09-30 07:11:02 -04:00
|#
1999-02-02 06:13:40 -05:00