[Cuis-dev] Erudite

Mariano Montone marianomontone at gmail.com
Sat Oct 22 15:13:13 PDT 2022


Hilaire,

I attach a package that extends Erudite with a 'copyToDrGeo' action 
after code blocks.

Let me know if this works for what you want to achieve. You need latest 
Erudite changes for this.

Cheers,

         Mariano

El 22/10/22 a las 15:51, Hilaire Fernandes via Cuis-dev escribió:
>
> No still the same with your latest package.
>
> This occurs only in live editing which I can disable, and it will be fine.
>
> variable
>
> There are other issues with live editing, for example when I want to 
> type in Transcript... I am again annoyed by the compiler.
>
> I am planing to add DrGeo dedicated command to literate programming 
> bloc. On will be to copy a code example to the Smalltalk Sketch editor.
>
> Thanks
>
> Hilaire
>
>
> Le 22/10/2022 à 15:53, Mariano Montone via Cuis-dev a écrit :
>> El 21/10/22 a las 16:37, Hilaire Fernandes via Cuis-dev escribió:
>>> When writing code [[[ | f | ]]] with a declared variable, there is 
>>> this recurring  annoying warning of the compiler about unused 
>>> variable f. 
>>
>> I pushed a change that I think takes care of that. Please let me know 
>> if it works for you.
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221022/eea0dd4e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran de 2022-10-22 20-36-44.png
Type: image/png
Size: 38788 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221022/eea0dd4e/attachment-0001.png>
-------------- next part --------------
'From Cuis 6.0 [latest update: #5494] on 22 October 2022 at 7:09:24 pm'!
'Description '!
!provides: 'DrGeoErudite' 1 1!
!requires: 'Erudite' 1 223 nil!
SystemOrganization addCategory: 'DrGeoErudite'!


!classDefinition: #DrGeoErudite category: 'DrGeoErudite'!
Object subclass: #DrGeoErudite
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'DrGeoErudite'!
!classDefinition: 'DrGeoErudite class' category: 'DrGeoErudite'!
DrGeoErudite class
	instanceVariableNames: ''!


!DrGeoErudite commentStamp: 'MM 10/22/2022 19:01:47' prior: 0!
Erudite extension for Dr Geo.


Adds copyToDrGeo as action to code blocks.!

!DrGeoErudite class methodsFor: 'as yet unclassified' stamp: 'MM 10/22/2022 19:03:51'!
initialize

	"self initialize"

	EruditeMarkupGrammar addCodeAction: 'copyToDrGeo'! !

!MorphicEruditeDocRenderer methodsFor: '*DrGeoErudite' stamp: 'MM 10/22/2022 19:08:02'!
renderCodeCopyToDrGeo: aDocCode

	|text button textModel |
	
	text _ Text string: aDocCode code.							.
							
	textModel _ EruditeSmalltalkTextModel withText: text.
	textModel formatAndStyle.
		
	stream nextPut: textModel actualContents.
	stream nextPut: ' '.
	
	button _ Text string: '[copy to Dr. Geo]' attributes: 
					{TextEmphasis underlined. 
						BlockTextAction do: [:anObject | self halt: 'Copy to Dr. Geo here']}.
	stream nextPut: button! !
DrGeoErudite initialize!


More information about the Cuis-dev mailing list