diff options
author | http://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web> | 2008-09-21 00:49:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-09-21 00:49:11 -0400 |
commit | e255e8ecbf2ae2dea4889ef2f5ccc3e4669d8b7d (patch) | |
tree | a1c36b8f09f062f528e3252360ec1a759e2f6530 /doc/bugs | |
parent | bd9686c19a53833f9a19abe6d62d1a72ea17810a (diff) |
Add a new bug when using source highlighting
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/multiple_pages_with_same_name.mdwn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/bugs/multiple_pages_with_same_name.mdwn b/doc/bugs/multiple_pages_with_same_name.mdwn new file mode 100644 index 000000000..191de8be5 --- /dev/null +++ b/doc/bugs/multiple_pages_with_same_name.mdwn @@ -0,0 +1,11 @@ +I'm just working on an updated solution to [[todo/automatic_use_of_syntax_plugin_on_source_code_files]] (see also [[plugins/contrib/highlightcode]] or [[plugins/contrib/sourcehighlight]]). + +I realised that this is going to have problems when you ask it to process `.c` and `.h` files with the same base name. e.g. `hello.c` and `hello.h`. + +I tested it briefly with `test.java` and `test.mdwn` just to see what would happen. Things got quite strange. The source-highlighting plugin was called (probably for the java file), but then when it calls `pagetype($pagesources{$page})` to figure out the file type, that function returns `mdwn`, which confuses things somewhat. + +Anyway, I'm thinking about possible solutions. The best option I've come up with so far is: when registering an htmlize hook, add a new optional paramter 'keep_extension'. This would make a source file of `hello.c` generate a page with name `hello.c` rather than the current `hello`. This would keep the pages unique (until someone makes `hello.c.mdwn`...). + +Suggestions welcome. + +-- [[Will]] |