@auto-md, clones, and writing Markdown documentation

2018-05-11 Thread drmikecrowe
So, I created a big leo file of all my documentation, random thoughts, 
pseudo-code, etc, and then started to try and organize sections into 
discrete markdown files (using @auto-md and clones from other areas of my 
leo file).  That did not go well.

Can somebody recommend a method that I can use?  Here's what I've seen so 
far:

   - @auto-md outputs exactly what I want (outline titles are output as 
   markdown headers), contents are written via the @others directive
   - What I was trying to do is structure an outline like this:
  - @auto-md wiki/States.md
 - State #1
- (clone) Info #1 from area 1
- (clone) Info #2 from area 2
 - State #2
- (clone) Info #3 from area 1
- (clone) Info #4 from area 2
 - I just went back and opened that tree, and now all the clones 
   are new nodes, and no longer match the original nodes (which I had been 
   updating)
   - @clean seems what I want, but it didn't appear to output the outline 
   titles as markdown headers

What should I be doing?

Mike

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Help needed: Set key to toggle between previous node

2018-04-08 Thread drmikecrowe
Rather than Ctrl-Tab swapping between leo files, I want it to toggle 
between the last node.  I'm setting this in my config, but this doesn't 
seem to work.  What should it be?


@keys
tab-cycle-next  = None
goto-prev-node  = Ctrl-Tab

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: #789 -- Building Sphinx documentation

2018-04-07 Thread drmikecrowe
PR submitted to address the issue




On Thursday, March 22, 2018 at 6:34:46 PM UTC-4, Chris George wrote:
>
> Open LeoDocs.leo. (Help, LeoDocs.leo) 
>
> Select the "Leo's Documentation" node. 
>
> Push the make-sphinx button. 
>
> Visit ../leo/docs/html/_build/html and open leo_toc in your browser. 
>
> The actual .leo file is better for searching, but the html is good for 
> reading. 
>
> Chris 
>
> On Thu, Mar 22, 2018 at 11:28 AM, drmikecrowe <drmik...@gmail.com 
> > wrote: 
> > The big question is how to generate what you'd upload to the host. 
> > 
> > If you have a moment, could you do this: 
> > 
> > Go to your doc/html directory 
> > Rename _build to _build.good (or whatever) 
> > Run "make html" 
> > Show me the difference between those two directories.  I know the 
> following 
> > are missing: 
> > 
> > doc/html/index.html -> _build/html 
> > doc/html/default.css -> _build/html/_static 
> > doc/html/leo_rst.css -> _build/html/_static 
> > doc/html/silver_city.css -> _build/html/_static 
> > tutorial.html?  Where is this built? 
> > others? 
> > 
> > I think my main question is:  What steps do I do to fully generate the 
> > website?  Are there steps using LeoDocs.leo that I must run?   "make 
> html" 
> > isn't the full command 
> > 
> > 
> > 
> > On Thursday, March 22, 2018 at 7:27:32 AM UTC-4, Edward K. Ream wrote: 
> >> 
> >> 
> >> 
> >> On Sat, Mar 17, 2018 at 8:24 AM, drmikecrowe <drmik...@gmail.com> 
> wrote: 
> >>> 
> >>> Hey folks, 
> >>> 
> >>> Was going to take a stab at #789.  However, need some in leo/doc/html, 
> >>> doing a "make html" creates _build/html, but there's no index.html and 
> other 
> >>> missing files. 
> >>> 
> >>> Can somebody give me some guidance on what I'm missing? 
> >> 
> >> 
> >> My apologies for the delay in responding.  I'm delighted that you're 
> >> interested in this issue. 
> >> 
> >> Leo's home page is a bit of a fudge.  It looks like it is created by 
> >> Sphinx, but it isn't, at present.  Perhaps it should be.  In 
> LeoDocs.leo, 
> >> the (html) sources for Leo's home page are in the node Web pages-->Home 
> >> page-->@file html/index.html.  So index.html is in the leo/docs folder. 
> >> 
> >> What other files do you think are missing? 
> >> 
> >>> 
> >>> If I copy index.html, default.css, leo_rst.css, silver_city.css to 
> their 
> >>> respective directories, I can (sorta) get the site running locally, 
> but I 
> >>> feel I'm missing a step. 
> >>> 
> >>> If I use the search.html page, no results returned.  I debugged a 
> little, 
> >>> and it's like the _sources directory isn't properly populated (further 
> >>> thinking I'm missing a step) 
> >> 
> >> 
> >> This is an excellent start.  Please ask any other question you like. 
>  I'm 
> >> not sphinx guru, so I can only tell you about what's in LeoDocs.leo. 
> >> 
> >> Edward 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "leo-editor" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to leo-editor+...@googlegroups.com . 
> > To post to this group, send email to leo-e...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/leo-editor. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


@button to convert highlighted text into section?

2018-03-26 Thread drmikecrowe
Anybody have a @button that can create a << section >> for a block of text?

For instance, if you're moving a new file into leo, and you want to convert 
each major function (or HTML block) into a section.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: #789 -- Building Sphinx documentation

2018-03-22 Thread drmikecrowe
The big question is how to generate what you'd upload to the host.

If you have a moment, could you do this:

   - Go to your doc/html directory
   - Rename _build to _build.good (or whatever)
   - Run "make html"
   - Show me the difference between those two directories.  I know the 
   following are missing:
  - 
  - doc/html/index.html -> _build/html
  - doc/html/default.css -> _build/html/_static
  - doc/html/leo_rst.css -> _build/html/_static
  - doc/html/silver_city.css -> _build/html/_static
  - tutorial.html?  Where is this built?
  - others?
   
I think my main question is:  What steps do I do to fully generate the 
website?  Are there steps using LeoDocs.leo that I must run?   "make html" 
isn't the full command



On Thursday, March 22, 2018 at 7:27:32 AM UTC-4, Edward K. Ream wrote:
>
>
>
> On Sat, Mar 17, 2018 at 8:24 AM, drmikecrowe <drmik...@gmail.com 
> > wrote:
>
>> Hey folks,
>>
>> Was going to take a stab at #789 
>> <https://github.com/leo-editor/leo-editor/issues/789>.  However, need 
>> some in leo/doc/html, doing a "make html" creates _build/html, but there's 
>> no index.html and other missing files.
>>
>> Can somebody give me some guidance on what I'm missing?
>>
>
> ​My apologies for the delay in responding.  I'm delighted that you're 
> interested in this issue.
>
> Leo's home page is a bit of a fudge.  It looks like it is created by 
> Sphinx, but it isn't, at present.  Perhaps it should be.  In LeoDocs.leo, 
> the (html) sources for Leo's home page are in the node Web pages-->Home 
> page-->@file html/index.html.  So index.html is in the leo/docs folder.
>
> What other files do you think are missing?
> ​
>  
>
>> If I copy index.html, default.css, leo_rst.css, silver_city.css to their 
>> respective directories, I can (sorta) get the site running locally, but I 
>> feel I'm missing a step.
>>
>> If I use the search.html page, no results returned.  I debugged a little, 
>> and it's like the _sources directory isn't properly populated (further 
>> thinking I'm missing a step)
>>
>
> ​This is an excellent start.  Please ask any other question you like.  I'm 
> not sphinx guru, so I can only tell you about what's in LeoDocs.leo.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


QScintilla support?

2018-03-22 Thread drmikecrowe
Hey folks, 

Is there a pointer somewhere to how/if this feature works?  I was wondering 
if it might give more syntax highlighting support than the default.


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


#789 -- Building Sphinx documentation

2018-03-17 Thread drmikecrowe
Hey folks,

Was going to take a stab at #789 
.  However, need some 
in leo/doc/html, doing a "make html" creates _build/html, but there's no 
index.html and other missing files.

Can somebody give me some guidance on what I'm missing?

If I copy index.html, default.css, leo_rst.css, silver_city.css to their 
respective directories, I can (sorta) get the site running locally, but I 
feel I'm missing a step.

If I use the search.html page, no results returned.  I debugged a little, 
and it's like the _sources directory isn't properly populated (further 
thinking I'm missing a step)

Any guidance?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Please consider becoming a Leo dev, even if you aren't a programmer

2018-03-14 Thread drmikecrowe
https://medium.com/@russleyshaw/which-chat-platform-should-i-use-d73f22d558f3

I like Gitter (more topics I personally care about)

On Wednesday, March 14, 2018 at 7:16:55 AM UTC-4, Edward K. Ream wrote:
>
> Yesterday I had an Aha. It's time to start training Leo devs 
> (developers)!  Leo's present devs are busy doing great work. We can't ask 
> them to do more.
>
> Leo's to-do list 
> 
>  
> has over 150 items. If you want one of those items, please consider adding 
> it yourself, *even if you aren't a programmer.* I'll teach you python and 
> Leo's internals.
>
> Python is easy to learn. After that, becoming acquainted with Leo's code 
> base will be easier than you might think.
>
> *Summary*
>
> If you have ever wanted to be a programmer, now is a great time ;-) I'll 
> be happy to answer *all *your questions.
>
> Training new devs will pay off handsomely (for me) in the long term.
>
> Edward
>
> P. S. From the fascinating 2018 Stack Overflow Developer Survey: 
> 
>
> "For the sixth year in a row, JavaScript is the most commonly used 
> programming language. Python has risen in the ranks, surpassing C# this 
> year, much like it surpassed PHP last year. Python has a solid claim to 
> being the fastest-growing major programming language 
> ."
>
> EKR
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Documenting best practices

2018-03-13 Thread drmikecrowe
So, having 2 objections to clones, let me give my thoughts:

   - What I'm working on is a microservices design spec that has multiple 
   API's with apps that interact with those API's
   - Let's say the API has a function 'PUT /updatePosition' that takes 
   these arguments
  - ID
  - Latitude
  - Longitude
   - In the smartphone app spec, I want to add the documentation which says:
  - When you've changed X miles in position, do a PUT to 
  /updatePosition with the arguments:
 - clone ID
 - clone Latitude
 - clone Longitude
  
So, from a documentation point of view, I'm maintaining the definition for 
those parameters once, and referencing them consistently across specs

Is this still discouraged? 

On Tuesday, March 13, 2018 at 12:29:38 PM UTC-4, Edward K. Ream wrote:
>
> On Tue, Mar 13, 2018 at 8:41 AM, drmikecrowe <drmik...@gmail.com 
> > wrote:
>
> I have a lot of configuration that must be defined as a Javascript object 
>> (or JSON).  I'm trying to decide on the best way to enter it into Leo.
>>
>
> ​For such questions I think first of creating a Leo script.​
>  
> ​Whether that's reasonable in your case depends completely on your desires.
>
> Is there a good way of managing this in Leo?
>>
>
> ​The answer to all such questions must surely be "yes".  However, that 
> answer, while being absolutely true (imo), doesn't help much ;-)
> ​
>  
>
>> I'm wondering if there's a way to build this JSON object via Leo, and 
>> somehow use clones to keep the data synchronized across different services 
>> within the project
>>
>
> ​I agree with Terry that clones aren't likely to be the best way.
>
> You could try making a suite of @button nodes that would use "raw" 
> json/yaml/whatever in some particular (known) node as a mini database​. 
> Python's json library module <https://docs.python.org/2/library/json.html> 
> would help you access the data in that node however you like.
>
> But these are just first thoughts. You can do amazing things with Leo if 
> you are comfortable with python scripting.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Documenting best practices

2018-03-13 Thread drmikecrowe
I have a lot of configuration that must be defined as a Javascript object 
(or JSON).  I'm trying to decide on the best way to enter it into Leo.

Example:

{
 accepts: [
 {arg: 'id', required: true, type: 'String', description: 'User ID'},
 {arg: 'req', type: 'object', required: true, http: {source: 'req'}}
 ],
 returns: {arg: 'results', type: 'object', root: true},
 http:{verb: 'post', path: '/:id/unsubscribe'}
}

Is there a good way of managing this in Leo?  From a documentation point of 
view, I tend to think about it as follows:

   - POST /id:/unsubscribe
  - accepts:
 - id: String (maybe put the definition in the body?)
 - req: Object
  - returns:
 - results: Object
  
Another example is the data definition for a model, such as:

"properties": {
  "firstName": {
"type": "String", 
"required": "true"
  },
  "id": {
"type": "Number", 
"id": true, 
"description": "User ID"},


I'm wondering if there's a way to build this JSON object via Leo, and 
somehow use clones to keep the data synchronized across different services 
within the project

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


cleo/todo and rst3?

2009-08-14 Thread drmikecrowe

Hi folks,

Has anybody ever thought of somehow adding the cleo attributes to
rst3?  I started flagging important nodes with priorities, then
realized that these didn't impact my output.  I realize this is non-
standard, but was curious if anybody else thought of something like
this.

Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Extract staying in original node?

2009-08-14 Thread drmikecrowe

Another quick one:

Is there a way to use Extract (ctrl-shift-D) and stay in the same
node?  I'm having to continually go back to the previous node each
time as I move a large outline into leo

Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: cleo/todo and rst3?

2009-08-14 Thread drmikecrowe

 Actually, it's not - rst3 functionality is still there, you just don't
 need to load the plugin since it's all loaded up by default. @auto-rst
 is a different thing, useful for different problem domain (arguably
 with larger target audience).

Ugh, have I been under a rock?  Where did we talk about @auto-rst?
Sorry, I missed that.  Is it documented somewhere?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Outputting HTML + rst3?

2008-10-27 Thread drmikecrowe

Hmmm, AsciiDoc?  May have just found it.  Sorry!

On Oct 27, 11:57 am, drmikecrowe [EMAIL PROTECTED] wrote:
 Hi folks,

 I need to write a spec, and wanted to use Leo to do it.  Ideally, I'd
 love to use the Export to HTML feature, but have the nodes exported
 with rst3 (so I can document each headline where needed with this
 formatting).  Is that in place already in some plugin?  My rooting
 through the newsgroups and the plugin folder didn't make it
 immediately obvious.

 TIA
 Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Parsing php -- quick help needed with leoImport.py

2008-10-23 Thread drmikecrowe

Hi Edward and folks,

I'm working on my PHP parser, and I have a couple of detailed
questions:

1)  The way these files are structures is:

--
?php

class Classname()
{
public function Functioname()
{
}

}
--

etc.




If I do:
--
self.hasClasses = True
self.hasFunctions = True
--

I get the Classname() node, but the functions aren't scanned.




If I do
--
self.hasClasses = False
self.hasFunctions = True
--



I get:




1st Node:
--
@language phpsection
@tabwidth -4
@others

}
--




2nd Node:
--
?php
class Classname
{
// This routine creates the main index page.
--



3rd Node:
--
public function Functioname()
{
}
--




So, my biggest question is:  How do I scan the classes, and scan the
functions within the classes?  I've been through the pythonParser
routine, but I don't quite see yet how it does it.

TIA
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: PHP Colorizer and child nodes?

2008-10-20 Thread drmikecrowe

chas,

Check out the latest trunk to get this working.  In your .leo file,
change

@language php

to

@language phpsection

That will work.  I'm working on a better import function, which breaks
classes up into nodes as well.

Mike

On Oct 19, 12:32 pm, chas [EMAIL PROTECTED] wrote:
 I would like to know if there is a solution to the problem mentioned.
 PHP code in child nodes are not  being syntax colored unless the child
 node in question contains a ?php  tag.

 At least some other languages (have not checked them all) seem to know
 how to color items in child nodes.  Why not PHP?

 chas

 On Oct 10, 7:37 am, Edward K. Ream [EMAIL PROTECTED] wrote:

  On Fri, Oct 10, 2008 at 8:27 AM, drmikecrowe [EMAIL PROTECTED] wrote:
   1)  Is there a way to tell the colorizer to look at parent nodes?
   2)  If not, is there a directive that I could give to force the markup
   mode?

  Both the old and new colorizer do a scan of colorizer-related
  directives in the node being colorized and all parent nodes.  This
  should not be an issue because the scan works for all languages.  If
  there were a problem we would know about it.

  Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



phpScanner and leoImport

2008-10-19 Thread drmikecrowe

Hi Edward,

I'm have the classes importing in phpScanner, and I'm trying to use
your isPurePHP() function.  It looks like I have to override scan(),
but can't figure out how to call the parent.  I was trying this:

def scan (self,s,parent):
g.trace(dir(self))
if self.isPurePHP(s):
self.language = phpsection
baseScannerClass.scan(self, s,parent)


and

def scan (self,s,parent):
g.trace(dir(self))
if self.isPurePHP(s):
self.language = phpsection
super(baseScannerClass, self).scan(self, s,parent)

and other variations.  Any idea what I'm doing wrong?

TIA
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Help writing (plugin? import command?)

2008-10-18 Thread drmikecrowe

Hi folks,

Quick question:  I'd like to import a couple of big files into leo.
The source language is Lua.  A typical contained function looks like:

-
--- Some Big Function
-- @name ...
-- @class ...
[snip]
-- @variable ...
function SomeBigFunction()

end


--- Next Big Function
-- @...
-

and so on.  I'd love to write a custom import which took the first
function and rendered a child node as:

-
@
- Some big function
@name ...
@class 
...
@c

function SomeBigFunction()

end
-

So, I've been importing everything as a @file (but later changing to
@shadow to remove the sentinals). Couple of questions:

1)  How would I write an importer for this?
2)  Would this be a plugin instead?
3)  At one point, I thought leo had a leo.leo file that loaded up all
the source.  Was that a long time ago?

Any help appreciated.

Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Help please building non-markup PHP mode

2008-10-15 Thread drmikecrowe

Edward,

Works like a dream.  I will write up a blog on our symfony site to
illustrate how nice this can be.

I had to design a system with ajax interaction.  It was beautiful
because:

1)  I could create a clone of just the portion of the HTML page with
the ajax form and edit the variables
2)  I could add another node which was just the ajax action which
loaded the form
3)  I could then edit the action portion of the form.

I had 5 different ajax areas, and couldn't have designed this as
quickly as I was able to w/o leo.  I kept getting confused by which
variables went with which actions, etc.

Thanks so much for this awesome tool!

Mike

On Oct 14, 10:18 am, Edward K. Ream [EMAIL PROTECTED] wrote:
 On Oct 13, 9:55 pm, Edward K. Ream [EMAIL PROTECTED] wrote:

  On Mon, Oct 13, 2008 at 7:52 PM, drmikecrowe [EMAIL PROTECTED] wrote:
   We need a new @language called phppart...
   Essentially, this can be the exact php language codes, but it needs to
   start inside the markup mode (I think).  I just don't see how to
   make it begin in that mode vs. trigger when it sees a ?php.

  I'll see what I can do.

 A new, working phpsection mode (@language phpsection) is on the trunk
 at rev 1224.  All unit tests pass and the mode appears to work as
 expected.

 leo/Modes/phpsection.xml is the same as php.py and except for the
 line:

 PROPERTY NAME=initialModeDelegate VALUE=phpsection::PHP /

 I changed the threading_colorizer plugin to support this new property.

 It might be possible to replace phpsection.xml almost entirely if we
 changed the line to something like:

 PROPERTY NAME=initialModeDelegate VALUE=php::MAIN /

 That might be more elegant, but there is no real need for that.

 Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Help please building non-markup PHP mode

2008-10-13 Thread drmikecrowe

Hi folks,

To make Leo a great tool to edit PHP code, we need a slight tweak, and
I'm out of my depth (been trying for about 1h, but I just don't
understand the syntax highlighting).  Could I please get some help
from a kind soul to tweak the modes/php.py and modes/php.xml?

We need a new @language called phppart.  This will represent a
snipped of PHP code inside a class (so we can Leo'ize large classes
into components).  Currently, the colorizor only kicks in if the
current node begins with ?php

Essentially, this can be the exact php language codes, but it needs to
start inside the markup mode (I think).  I just don't see how to
make it begin in that mode vs. trigger when it sees a ?php.

Any help would be *greatly* appreciated.

Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



PHP Colorizer and child nodes?

2008-10-10 Thread drmikecrowe

Hi folks,

In http://groups.google.com/group/leo-editor/msg/a5a6d7463cc1b38e,
Edward mentions this:

Actually, I don't understand the previous php import code at all.
Furthermore, the php colorizer doesn't color any node as php unless
the text
contains '?php'. So this might be a project.


I just pulled in a rather big php project, and discovered this issue.
My parent nodes look like:
--
?php
 docstring 
class pagerActions extends sfActions
{
@others
}
--

And a given child node (this one is called executeIndex) looks like:
--
@
This routine creates the main index page.
@c
public function executeIndex($request)
{
}
--


I can't put ?php in that child node, so I'm not seeing the
colorizing.

I've looked through the modes/php.py and modes/php.xml, but can't see
an easy solution.

Questions:

1)  Is there a way to tell the colorizer to look at parent nodes?
2)  If not, is there a directive that I could give to force the markup
mode?

I'm happy to tackle these myself, but need some guidance, please.

TIA
Mike

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Importing existing project -- shortcut?

2008-10-10 Thread drmikecrowe

Excellent! That was what I needed (I just didn't know the right way of
asking for it).

Thank you!

On Oct 9, 11:25 pm, lmsteffan [EMAIL PROTECTED] wrote:
 On 10 oct, 09:00, drmikecrowe [EMAIL PROTECTED] wrote:

  Hi folks,

  If I have a project that I want to move into Leo, is there an easy way
  to highlight a function and have that block exported to a child node?
  To make moving files into an outline easier?

 Have you tried the extract function ? obtainable through Edit 
 Edit body  extract,
 that's the function that I use to break down the Python programs that
 I want to import. You might also try the
 other related functions (extract sections / extract names, I think).
 With a little more setup work, they give me very good results.

 I'd also be glad to learn whether there are other ways to do that, I
 just sort of stumbled on these functions some time ago...

 Cheers,
 Laurent

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Importing existing project -- shortcut?

2008-10-09 Thread drmikecrowe

Hi folks,

If I have a project that I want to move into Leo, is there an easy way
to highlight a function and have that block exported to a child node?
To make moving files into an outline easier?

I've looked around, but I don't know if I'm using the right
terminology.

Mike

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---